Formula Issue

abacon1960

Board Regular
Joined
Jul 28, 2014
Messages
54
I am looking to perform the following but cannot figure out what to do with the middle IF statement?

=IF(A1<1,"SATISFACTORY",IF(A1>1,A1<1.25,"CAUTION",IF(A1>1.25,"HIGH ALERT","")

I know there is a simple solution, hopefully.

Thanks.
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
When you have more than one condition to check, you can use AND (if multiple conditions MUST be met) or OR (if just any one of multiple conditions must be met).
So your middle IF code would look like:
Code:
...IF(AND(A1 > 1,A1 < 1.25),...

However, this is not necessary if you understand how nested IF statements work. A nested IF statement will STOP at the point where it finds a TRUE, and not evaluate anything after it.
So if you have a situation where you are checking increasing or decreasing amount, just start at one end and work your way up (or down).
So, you could simply write your formula like this:
Code:
[COLOR=#333333]=IF(A1<1,"SATISFACTORY",IF(A1<1.25,"CAUTION","HIGH ALERT"))[/COLOR]
 
Upvote 0

Forum statistics

Threads
1,224,820
Messages
6,181,162
Members
453,021
Latest member
Justyna P

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