Conditional Formatting: Using OR & AND Statement

Disarmonious

Board Regular
Joined
Oct 31, 2016
Messages
139
Hello,

I want the text to turn red (cell BY6) if these conditions are NOT met;

C6="Apple"
BT6="No"
BZ6<>1

AA6<>"A: Cherry"
AA6<>"A: Strawberry"
AA6<>"A: Watermelon”
AA6<>"A: Orange"
AA6<>"A: Banana"

I was trying to use this formula, but Excel didn't like it; =OR(AA6<>"A: Cherry",AA6<>"A: Strawberry",AA6<>"A: Watermelon”,AA6<>"A: Orange",AA6<>"A: Banana",AND(C6="Apple",BT6="No",BZ6<>1))

Thank you in advance!
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
You're welcome & thanks for the feedback.
 
Upvote 0
Hey Fluff,

So when I enter these in, I get this error;
1595009368846.png
when I put the ' before the = sign, it accepts it, but the conditional formatting for these cells don't seem to be functioning (text does not turn red). Is there another way to enter these formulas in that excel will accept without having to add apostrophes?
 
Upvote 0
So when I enter =AND(AA6<>"A: Cherry",AA6<>"A: Strawberry",AA6<>"A: Watermelon”,AA6<>"A: Orange",AA6<>"A: Banana",AND(C6="Apple",BT6="No",BZ6<>1)) into cell BY6 (which will display a red check mark if those conditions are NOT met), excel prompts that message. I'm wondering if there's another way to enter this formula for the conditional formatting to work?
 
Upvote 0
The quote mark after Watermelon is wrong, it should be a " not a ”
 
Upvote 0

Forum statistics

Threads
1,214,951
Messages
6,122,449
Members
449,083
Latest member
Ava19

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