Check values in 4 cells and return appropriate remarks depending on the cell value

dmk18572

New Member
Joined
Apr 11, 2015
Messages
1
Greetings,

Please help me creating a formula for the following requirement.



I have prepared an excel sheet with over 150 parameter taking input from phd uniformance (historian) and compared them with their respective set alarm &trip values.
I have shown four such parameters (Steam Turbine Radial Vibrations)
Accordingly I have the traffic colour codes (Green-Normal, Yellow-Alert, Red-Danger) using conditional formatting AND also return text in Column M

Next I want to compare the four outputs in column M and return back with following in column O:
1) NORMAL: if all four are "Normal"
2) ALERT: if any one of the four is "Alert", rest are "Normal"
3) DANGER: if any one of the four is "Danger" and rest are "Normal" or "Alert"

I've tried the following but it does not work
=IF(OR(M5="Danger", M6="Danger",M7="Danger",M8="Danger")="Danger", "DANGER", IF(OR(M5="Alert", M6="Alert",M7="Alert",M8="Alert")="Alert","ALERT","NORMAL"))

Regards,
dmk18572
 
dmk

I think you need to remove the ="Danger" for the same part of the IF statement. By having it there you make that statement a Boolean one which is not what you want. Regarding the second part, I would do it with COUNTIF. I changed below the first part and gave you the guideline for the second (you also need to get rid of the Boolean),

=IF(OR(M5="Danger", M6="Danger",M7="Danger",M8="Danger"), "DANGER", IF(COUNTIF([Your condition]),"ALERT","NORMAL"))

I hope this helps.
 
Upvote 0

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