IF Multiple citeria.

srizki

Well-known Member
Joined
Jan 14, 2003
Messages
1,860
Office Version
  1. 365
Platform
  1. Windows
Hi everyone and happy new year.
I need to formula, that is Quantity * % of rate per unit. % depends conditions. A, B, C or D.
A=100%, B=75%, C=50% and D=25%
I or user will input quantity and price per unit and the formula will calculate the total price.
I want the formula in cell let’s say, C4, see the condition dropdown (A, B, C or D) in cell B4 and populate the % accordingly.
Just to explain better, it is something like,
=IF((B4=”A”, 100), IF(B4=”B”,.75),IF(B4=”C”,.5),.25))
Or =choose(…
And of course the above formula is wrong.

Thanks
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
One way:
Code:
=IF(A4="A",100%,IF(A4="B",75%,IF(A4="C",50%,IF(A4="D",25%,""))))
Note that 100% does NOT equal 100. It actually equals 1.
 
Upvote 0

Forum statistics

Threads
1,224,824
Messages
6,181,186
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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