Conditional formatting with multiple conditions

indiindeed

New Member
Joined
Mar 24, 2024
Messages
2
Office Version
  1. 365
Platform
  1. Windows
I have two columns that will eventually contain text
1711331671325.png

I have applied conditional formating to highlight cells in Q that do not contain the same text as P. What I would like to do now is add a further condition so if Q does not contain anything, it will not be highlighted with red shading. In my example, I would like Q5 to have no red shading. Is this possible please?

Thanks.
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
What do you mean by "contain"? Do you mean that the text from P is not contained anywhere in Q? Or that they are not exactly the same?

It would be helpful to see the current rule. This should help:

Rich (BB code):
=AND(Q1<>"", <your current rule goes here>)
 
Upvote 0
Thanks, hope this helps.

Column P will contain text with a single word and column Q will also contain text with a single word. Column Q may have the same word as column P. If column Q does NOT have the same word as column Q, I want column Q to be shaded red. The problem I have at the moment, is until all cells in P and Q contain text, column Q is shaded red. This is producing false positives which I want to avoid. Here is the current conditional formatting dialogue box:


1711332863597.png


Thank you
 
Upvote 0
It is basically as @6StringJazzer stated but adapting to your particular range.

24 03 25.xlsm
PQ
4dogbird
5dog
6dogdog
7dogcat
CF Rule
Cells with Conditional Formatting
CellConditionCell FormatStop If True
Q4:Q7Expression=AND(Q4<>"",P4<>Q4)textNO
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,289
Members
452,631
Latest member
a_potato

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