Conditional Formatting for Multiple Conditions

AJuarez5032

New Member
Joined
Jan 10, 2025
Messages
4
Office Version
  1. 365
Platform
  1. Windows
Hello,

I am attempting to use conditional formatting to change the color of cell O6 if G6 contains the word “Yes” and O6 contains any date.

The formula I am using is:
=AND($G6=“Yes”,$O6<>””)

Unfortunately, no success
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
Welcome to the Board!

It works just fine for me. Just note that Excel does not linked slanted double-quote marks, they need to be the straight up and down ones like this:
Excel Formula:
=AND($G6="Yes",$O6<>"")

1736541611704.png


If you still cannot get it to work, please lay out the details for us.
What cell are you trying to apply this formula to?
And can you show us a screen print, like I did above, so we can see cells G6 and O6?
 
Upvote 0
Welcome to the Board!

It works just fine for me. Just note that Excel does not linked slanted double-quote marks, they need to be the straight up and down ones like this:
Excel Formula:
=AND($G6="Yes",$O6<>"")

View attachment 121147

If you still cannot get it to work, please lay out the details for us.
What cell are you trying to apply this formula to?
And can you show us a screen print, like I did above, so we can see cells G6 and O6?
Does it matter if the word “Yes” is in a drop down list on cell G6?
 
Upvote 0
No, not at all. But just make sure that it equals EXACTLY "Yes".
If there is so much as an extra space at the beginning or end of "Yes", it won't work.

Are you sure that you applied your Conditional Formatting rule to the correct range?
This is a very common error people make, as they do not always understand the correlation between the applied to range and formula they enter.
 
Upvote 0
Okay, let ne
No, not at all. But just make sure that it equals EXACTLY "Yes".
If there is so much as an extra space at the beginning or end of "Yes", it won't work.

Are you sure that you applied your Conditional Formatting rule to the correct range?
This is a very common error people make, as they do not always understand the correlation between the applied to range and formula they enter.
Wow thank you!!! I have been trying to solve this issue for about 2 weeks & the reason is wasn’t taking was due a space after the word “Yes.” I truly appreciate your help!!
 
Upvote 0
You are welcome.

Note, if it is just a regular space, and not some special character (like a "non-breaking space"), you could also address it by changing your formula to this:
Excel Formula:
=AND(TRIM($G6="Yes"),$O6<>"")
as the TRIM function would drop regular spaces at the end.
 
Upvote 0
Solution
Note that when marking a post as the solution, you want to mark the original post that contains the solution (not your own post acknowledging some previous post is the solution).
I have updated this for you.
 
Upvote 0

Forum statistics

Threads
1,225,626
Messages
6,186,087
Members
453,336
Latest member
Excelnoob223

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