If statement for different values multiply

rentonhighlands

Board Regular
Joined
Jul 31, 2014
Messages
110
Please help me write a IF statement to do this

If COL X has 10 then multiply by $14.19, if COL X has 20 then multiply by $18.49
I have 8 to sting together. Can a IF statement string 8 different calculations together?
 

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.
Better to use a lookup, something like

=X2*LOOKUP(X2,{10,20,30,40,50},{14.19,18.49,20,30,40})
 
Upvote 0
I was unclear with my last request for help
I have this formula =LOOKUP(K4,{10,20,30,40,50,100,150,1000,2000},{14.19,18.49,28.38,38.27,63.64,102.52,255.15,255.15})
what I need this formula to do is when in col K4 it finds "10" then populate $14.19, if we find 20 then populate $18.49, if we find 50 then populate $28.38, if we find 150 then populate $63.64.

What is happening now is when it finds "50" it is populating $63.64.
 
Upvote 0

Forum statistics

Threads
1,213,494
Messages
6,113,972
Members
448,537
Latest member
Et_Cetera

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