Formula help

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,
I posted this question yesterday thinking I could use SUMPRODUCT to get the
values I need, but looking at the responses I got I'm pretty sure I need to
find another way. I have 2 spreadsheets that I need to compare with each
other. Spreadsheet #1 has:
BegBatch EndBatch Tape#
38402 38508 82

Spreadsheet #2 has a Batch# in Col. H, such as 38415. I need to see if the
38415 is in the range 38402 - 38508 in Spreadsheet #1 and return the Tape# to
Spreadsheet #2. The Beg and End Batch range the Batch# is in could be in any
row in the spreadsheet, so the formula needs to look at a range, not just 1
row. Any suggestions would be very appreciated. TIA
 
As long as there are only one TRUE condition it will work if the values in
the tape column are numbers, if text in tape and the values in begbatch and
endwatch are numbers

=INDEX(Sheet1!C2:C100,MATCH(1,(Sheet1!A2:A100<=H2)*(Sheet1!B2:B100>=H2),0))

entered with ctrl + shift & enter
 
Thank you so much for the help. I figured I had to use INDEX and MATCH but
was a little off on the formula.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top