Data Validation - Cell Colour

R

ray963

Hi All,

I am creating a "Data Validation" on "Sheet 1".

The Data for the drop down list is on "Sheet 2" e.g. "YES", "NO".

I have created the drop down list which gives me the drop down "YES" & "NO"
on Sheet 1.

My iquiry is, when I select "YES" on the drop down list it places "YES" in
the cell. I also want the "cell fill colour" to change to "GREEN". Also when
I select "NO" I want the the "cell fill colour" to change to "RED".

Can anyone help me?
 
J

John C

Check into Conditional Formatting:
If you are only basing it on the current cell value
Leave condition 1 drop down as Cell Value is, change the second drop down
to: equal to. And type ="YES" in the final box. Then click on format to
change your format. Click add to add a second condition for NO.
 
J

Jim Thomlinson

Use Conditional Formatting. Format -> conditioanl Formatting...

You will need 2 conditions. One where the cell value is Yes and a second one
where the cell value is No.
 
T

T. Valko

Use conditional formatting.

Assume A1 contains the drop down list
Select cell A1
Goto the menu Format>Conditional Formatting
Condition 1
Select the Formula Is option
Enter this formula in the box on the right:
=A1="Yes"
Click the Format button
Select the Patterns tab
Select a shade of GREEN
OK

Click the Add button

Condition 2
Select the Formula Is option
Enter this formula in the box on the right:
=A1="No"
Click the Format button
Select the Patterns tab
Select a shade of RED
OK out
 

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