multiple IF statements in same cell

wayneeustace

New Member
Joined
May 16, 2015
Messages
22
Hi there

I need to return different results depending on the value of a cell.

Example:

In cell B1 and C1 there are standard numerical data.
In cell E1 there is a simple formula: =C1/B1 (with the returned value shown as %)

In cell F1 I need to return:

If D1="yes" then add 5% to the total of E1
If E1 <5% then "fail"
If E1 =>5% but <10% then "yes"
If E1 >10% then "no"

I've tried several different combinations but can't seem to get it work. Any assistance would be greatly appreciated.

Thank you.
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
Your IF E1 statements

Is that IF E1... with the 5% already added (cos D1="Yes")

or is that IF E1... if the D1="yes" fails ?
 
Last edited:
Upvote 0
Try

IF(D1="Yes",E1*1.05,LOOKUP(E1,{0,0.05,0.1},{"Fail","Yes","No"}))
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,896
Messages
6,175,260
Members
452,627
Latest member
KitkatToby

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