Conditional formatting based on criteria

Jayfaku

New Member
Joined
Aug 21, 2018
Messages
16
In worksheet I have drop down YES/NO in column P

If P is "Yes", I want Q:U to be all filled with say colour red
If if P is "NO" then no conditional formatting applies
But also if Q has a "Yes", the everything P:U turns Yellow
And if Q is a "NO", then P:U is Green

Could you please assist?

Thank you
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
If if P is "NO" then no conditional formatting applies
But also if Q has a "Yes", the everything P:U turns Yellow
That is not clear to me. What if P is NO and Q is Yes?
Does NO win and there is no formatting applied, or does Yes win and yellow is applied to P:U?
 
Upvote 0
There will never be a NO in P and Yes in Q
If there is a NO in P the rest of the column don't apply
Effect comes to play when P is Yes
 
Upvote 0
OK, try this. For my layout below ..

Select P2:U6 and apply the CF formula for green.

With P2:U6 still selected apply the CF formula for yellow

Now select Q2:U6 and apply the conditional formatting formula shown below for red

Excel Workbook
PQRSTU
1
2YES
3NO
4
5YES
6NO
CF
Cells with Conditional Formatting
CellConditionCell FormatStop If True
P21. / Formula is =$Q2="NO"Abc
P22. / Formula is =$Q2="YES"Abc
Q21. / Formula is =$Q2="NO"Abc
Q22. / Formula is =$Q2="YES"Abc
Q23. / Formula is =$P2="YES"Abc
 
Upvote 0

Forum statistics

Threads
1,224,821
Messages
6,181,163
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