V Lookup - Data Navigation Formula

Rob #4

Board Regular
Joined
Jun 19, 2003
Messages
194
I currently have this formula in a cell in my spreadsheet:

=VLOOKUP(C21,'LEMS Rates'!A$1:D$1303,2,0)

I am trying to figure out how to modify it based on some IF circumstances:

IF
'Cat & OH&P Markups'!A2
=
'LEMS Rates'!B1
It should use that formula

or

IF
'Cat & OH&P Markups'!A2
=
'LEMS Rates'!C1
The formula should be
=VLOOKUP(C21,'LEMS Rates'!A$1:D$1303,3,0)

or

IF
'Cat & OH&P Markups'!A2
=
'LEMS Rates'!D1
The formula should be
=VLOOKUP(C21,'LEMS Rates'!A$1:D$1303,4,0)

Could someone help me fix the formula to make this work?
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
You want to structure a nested IF formula, like this:
=IF(condition1,vlookup formula1, IF(condition2,vlookup formula2, IF(condition3,vlookupformula3,what to return if no conditions are met)))

So just substitute your conditions and formulas in the appropriate places.
 
Last edited:
Upvote 0
Assuming 'Cat & OH&P Markups'!A2 will be one of
'LEMS Rates'!B1
'LEMS Rates'!C1
'LEMS Rates'!D1

Try
=VLOOKUP(C21,'LEMS Rates'!A$1:D$1303,MATCH('Cat & OH&P Markups'!A2,'LEMS Rates'!B1:D1,0)+1,0)
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,240
Members
452,621
Latest member
Laura_PinksBTHFT

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