Conditional formatting: OR statement

Finney1

New Member
Joined
Oct 18, 2011
Messages
10
Hello,

How do I conditionally format a cell to change if any letters other than "A" or "V" are entered?

Thank you!

:confused:
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
Welcome to the board..

You probably actually want AND instead of or..

And does it have to be letters? or basically ANYTHING other than A or V?
What about Blanks?

Try this for starters

=AND(A1<>"A",A1<>"V",A1<>"")

This is TRUE if A1 = ANYTHING other than A or V or Blank.

Hope that helps.
 
Upvote 0
Welcome to the board..

You probably actually want AND instead of or..

And does it have to be letters? or basically ANYTHING other than A or V?
What about Blanks?

Try this for starters

=AND(A1<>"A",A1<>"V",A1<>"")

This is TRUE if A1 = ANYTHING other than A or V or Blank.

Hope that helps.

Hi-

Thanks for responding so quickly. The cell should have either an "A" or "V" entered. Nothing else will be correct. I want the cell to turn black if it is blank or if another letter/character is entered. Does that change your formula?

Thank you!
 
Upvote 0
OK, so to make it work for blanks as well
=AND(A1<>"A",A1<>"V")

This will make the formatting apply if ANYTHING other than "A" or "V" is entered in A1.
Actually, it will also accept "a" or "v" ...it's not case sensitive.

If you need it to be case sensitive

=AND(NOT(EXACT(A1,"A")),NOT(EXACT(A1,"V")))
 
Upvote 0
OK, so to make it work for blanks as well
=AND(A1<>"A",A1<>"V")

This will make the formatting apply if ANYTHING other than "A" or "V" is entered in A1.
Actually, it will also accept "a" or "v" ...it's not case sensitive.

If you need it to be case sensitive

=AND(NOT(EXACT(A1,"A")),NOT(EXACT(A1,"V")))

jonmo1 -

It works like a charm! Thank you so much for your quick service AND accurate formula!! You made my day.

:biggrin:

finney1
 
Upvote 0

Forum statistics

Threads
1,224,885
Messages
6,181,576
Members
453,055
Latest member
cope7895

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