Nested IF Statement

AliGeeJay

New Member
Joined
Nov 28, 2018
Messages
14
Office Version
  1. 365
Platform
  1. Windows
I am looking for some advice of nested IF statements.

I am looking to put an IF statement in Cell C2 with the following conditions:

If Cell A2 <10 and Cell D2 = Compliant then “ “ but, if Cell A2 is between 10 and 50 refence Cell E5, but if it is >50 then reference Cell E4.

However if Cell A2 <10 and Cell D2 = Investigate then reference Cell E3 but, if Cell A2 is between 10 and 50 reference Cell E5, but if it is >50 then reference Cell E4.

Finally, if Cell D2 = Concurrent then reference Cell E4.

I hope my outline above makes sense.

I have attached a spreadsheet for reference of what the outcome would look like.

Con_Sample.xlsx
ABCDE
1Threshold %RAG Status
29%Compliant
335%Compliant?
4-12%?Investigate
515%Concurrent
Sheet1
Cell Formulas
RangeFormula
C5C5=IF(A5<0,"",IF(OR(D5="Concurrent",D5="Investigate",D5="Compliant"),IF(OR(A5>10,A5<50,),E5,"")))
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
How about
Excel Formula:
=IF(D2="Concurrent",$E$4,IF(A2<10,IF(D2="compliant","",$E$3),IF(A2<=50,$E$5,$E$4)))
 
Upvote 0
Solution
How about
Excel Formula:
=IF(D2="Concurrent",$E$4,IF(A2<10,IF(D2="compliant","",$E$3),IF(A2<=50,$E$5,$E$4)))
Hello again, in order take into account the Investigate section do I need to copy the section for Compliant and change this to Investigate?
 
Upvote 0
No need to change anything, it should do that already.
 
Upvote 0
It works for me, unless I have misunderstood something.
Cond_Sample.xlsx
ABCDE
1Threshold %RAG Status
29% Compliant
335%Compliant?
4-12%?Investigate
5-15%Concurrent
612%Compliant
Sheet1
Cell Formulas
RangeFormula
C2:C6C2=IF(D2="Concurrent",$E$4,IF(A2<10,IF(D2="compliant","",$E$3),IF(A2<=50,$E$5,$E$4)))
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B6Cell Value<0textNO
A6Cell Value<0textNO
B2:B5Cell Value<0textNO
A2Cell Value<0textNO
A3:A5Cell Value<0textNO
 
Upvote 0
Cross-posting (posting the same question in more than one forum) is not against our rules, but the method of doing so is covered by #13 of the Forum Rules.

Be sure to follow & read the link at the end of the rule too!

Cross posted at: If Statement Headache... Again
If you have posted the question at more places, please provide links to those as well.

If you do cross-post in the future and also provide links, then there shouldn’t be a problem.
 
Upvote 0
It works for me, unless I have misunderstood something.
Your formula matches the description in the OP but his example is his first post is not consistent with his description.

AliGeeJay said:
Finally, if Cell D2 = Concurrent then reference Cell E4.
But the example shows that case referencing E5.
 
Upvote 0
Agreed, I was just going by the description. Have to see if there is any further feedback from the OP.
 
Upvote 0

Forum statistics

Threads
1,224,824
Messages
6,181,187
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