Conditional formatting with multiple statements

rmak85

New Member
Joined
Oct 3, 2018
Messages
12
Hello I need some help with conditional formating.

Cell C has drop down for "Anode Mother Roll" and"Cathode Mother Roll"
Cell P is result 1
Cell Q is result 2

In the results i need to change the cell to either green orred depending on the value inputted.

If Anode Mother Roll and result is <=1350 = green,>1350 = red
if Cathode Mother Roll and result is <=520 = green,>520 = red

Code for Red
Code:
=OR((AND($C7="Anode MotherRoll",$Q7>1350)),(AND($C7="Cathode MotherRoll",$P7>520)),(AND($C7="Cathode Mother Roll",$Q7>520)))

Code for Green
Code:
=OR((AND($C7="Anode MotherRoll",$Q7<=1350)),OR(AND($C7="Cathode MotherRoll",$P7<=520)),OR(AND($C7="Cathode MotherRoll",$Q7<=520)))[/COLOR][/SIZE][/FONT]

I cant get the results to change independantly depending onthe drop list item?
 
Last edited:

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
You've spelt "Mother Roll" without a space in the Condtional formatting
 
Last edited:
Upvote 0
Apologies, it was just a paste error. They are correct on my worksheet. Problem is both result boxes change colour instead of independently?

Code:
=OR((AND($C7="Anode Mother Roll",$Q7>1350)),(AND($C7="Cathode Mother Roll",$P7>520)),(AND($C7="Cathode Mother Roll",$Q7>520)))



Code:
=OR((AND($C7="Anode Mother Roll",$Q7<=1350)),OR(AND($C7="Cathode Mother Roll",$P7<=520)),OR(AND($C7="Cathode Mother Roll",$Q7<=520)))
 
Last edited:
Upvote 0
"If Anode Mother Roll and result is <=1350 = green,>1350 = red
if Cathode Mother Roll and result is <=520 = green,>520 = red"

Which result are you referring to in the above, P or Q ?
 
Upvote 0
The above applies to both results as there are two testsdone.
For example,
Anode test, result 1 = 1300 (should turn green), Result 2 =1351 (should turn red)
Cathode test. Result 1 = 521 (should turn red), Result 2 =500 (should turn green)

However both results turn colour based on condition ofresult 2 (Q)

 
Upvote 0
=OR(AND(C7="Anode Mother Roll",OR(P7<=1350,Q7<=520)) format as green

=OR(AND(C7="Cathode Mother Roll",OR(P7>520,Q7>1350)) format as red
 
Upvote 0
Im still unable to achieve the result. Here is the exampleim trying to achieve. Maybe I need to use the IF function?
True Green Statement
IF “anode mother roll” is <=1350 OR IF Cathode Motherroll is <=520

Something along these lines?
I just cant wrap my head round it.
1ze8gon.jpg
 
Upvote 0

Forum statistics

Threads
1,223,214
Messages
6,170,774
Members
452,353
Latest member
strainu

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