Lookup, one row down

T

Tomas Stroem

Hi,

I have a large database in an Excel file containing order information.
I need to match delivery times from this database with some estimated
production times per order number. In some cases there are two delivery times
but the order number in the databsae is the same.
Does anyone have an idea on how to also get the other delivery time, which
always is found on the row under the first desired row.

Kind of Vlookup(a1;Range;Row;0)+1
 
T

T. Valko

What if there is just a single instance of the lookup value? If you always
look for the 2nd instance then in those cases when there is just a single
instance the formula will return incorrect results.

This will find the 2nd instance:

=INDEX(range,MATCH(lookup_value,lookup_array,0)+1)
 
N

N Harkawat

And if the data is not sorted/has more than 1 and you want the last
selection from the array use this array function (after entering your formula
press ctrl+shift+Enter instead of just Enter)

=LOOKUP(2,1/(b1:b1000=a1),a1:a1000)
 

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

Top