Multiple lookup values

ECLOUTIER

New Member
Joined
Sep 19, 2014
Messages
2
I need a formula that will lookup a value, if found return the answer, if not found look up the next value, if found return the answer, if not found look up the next value and return the answer.

look up data
100 200 300

table

1001 56
1002 59
200 60
450 58

Formula would check 100 first, not find it and then check to 200 find it and return the value 60
 

Some videos you may like

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.

NeonRedSharpie

Well-known Member
Joined
Jul 14, 2014
Messages
1,678
Code:
=IFERROR(VLOOKUP($A$1,$F:$G,2,0),IFERROR(VLOOKUP($B$1,$F:$G,2,0),IFERROR(VLOOKUP($C$1,$F:$G,2,0),"Not Found")))

This assumes look up values in A1, B1, C1 and your table in F:G.
 

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,201
Let A2:B5 house the table and D2:F2 the three lookup values.

G2:

=INDEX(B2:B5,LOOKUP(9.99999999999999E+307,MATCH(D2:F2,A2:A5,0)))

which returns the correlate of the last successful match.
 

Watch MrExcel Video

Forum statistics

Threads
1,123,088
Messages
5,599,664
Members
414,325
Latest member
kfg1287

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top