Either/Or in Conditional Formatting

G

Guest

Hello,
As a user selects from a list, I'm trying to get Excel to color the cell
according to the selection.
As an example:
If the question is "Are you hungry?"
The choices could be "Yes", "No", "Not right now", "How long 'til lunch?",
"I'm starving".
I would like the cell to be (say) colored green for "Yes" and "I'm starving".
I would like the cell to be (say) colored yellow for "Not right now" and
"How long 'til lunch".
I would like the cell to be (say) colored red for "No".

In CF, I've tried "Formula Is" and =OR("Yes","I'm starving")
Also: "Cell Value Is" and ="yes"+"I'm starving".....
among other unsuccessful attempts.

Any help would be appreciated.

MJ
 
R

Roger Govier

Hi

It sounds like you have just missed out the cell reference to be tested
Formula Is
= A1 =OR("Yes","I'm starving")

Change A1 to whatever the correct cell reference is that contains your
answer
 
B

Bob Phillips

M said:
Hello,
As a user selects from a list, I'm trying to get Excel to color the cell
according to the selection.
As an example:
If the question is "Are you hungry?"
The choices could be "Yes", "No", "Not right now", "How long 'til lunch?",
"I'm starving".
I would like the cell to be (say) colored green for "Yes" and "I'm starving".
I would like the cell to be (say) colored yellow for "Not right now" and
"How long 'til lunch".
I would like the cell to be (say) colored red for "No".

In CF, I've tried "Formula Is" and =OR("Yes","I'm starving")
Also: "Cell Value Is" and ="yes"+"I'm starving".....
among other unsuccessful attempts.

Any help would be appreciated.

MJ


Use a formula of

=OR(A1="Yes",A1="I'm starving")

assuming the data is in the A column and A1 is the activecell when you
go into CF.
 
R

Roger Govier

Hi

Sorry, having a totally senior moment then.
That should have been
=OR(A1="Yes",A1="I'm starving")
 
G

Guest

Hey, no problem. Solution works...that's my only concern.
Many thanks and much admiration.

MJ
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top