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

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
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,215,066
Messages
6,122,948
Members
449,095
Latest member
nmaske

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