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
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
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.
 
Upvote 0
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.
 
Upvote 0

Forum statistics

Threads
1,215,004
Messages
6,122,656
Members
449,091
Latest member
peppernaut

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
Back
Top