Combine vlookup with if(and) functions

bmackie97

New Member
Joined
Oct 4, 2011
Messages
6
I am trying to run a vlookup based on different scenarios. basically, I have a file with 3 columns of data. Column A has a list of identifiers, Column B will state either "Dollars" or "Cents", and Column C will list a price. What I want to do is a vlookup to find the identifier, and if column B is Cents, take the price*100, but if it is listed as Dollars to take the price as is. Is this possible by combining a vlookup with other functions?
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
Hi and welcome.

Try something like this where ID is the value you want to lookup in column A.

=VLOOKUP(ID,A:C,3,0) * IF(VLOOKUP(ID,A:B,2,0)="Cents",100,1)
 
Upvote 0

Forum statistics

Threads
1,224,613
Messages
6,179,894
Members
452,948
Latest member
Dupuhini

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