Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change cell color in Excel according to adjacent dropdown value

I understand how to make a dropdown list. I understand how to make conditional formatting change the color of a cell. What I do not understand is how to make conditional formatting change the color of a cell based solely on the state of another cell (not a comparison).

A1 is a No / Yes dropdown list

B1 is a criteria statement

If the user satisfies the criteria statement in B1, they select Yes on the dropdown list in A1. For quick reference, if possible, I'd like B1 to change to a green background color on this event, and of course change back to no-fill if the dropdown is reset to No.

Is this possible in Excel 2003 and/or 2007?

like image 661
Drew Avatar asked Apr 14 '10 03:04

Drew


People also ask

How do I highlight a cell based on adjacent values in Excel?

(1.) Click Use a formula to determine which cells to format from the Select a Rule Type list box; (2.) Enter this formula: =$A2>$B2 (greater than adjacent cell) or =$A2<$B2 (less than adjacent cell) into the Format values where this formula is true text box.


1 Answers

In Excel 2007, 2010 or 2013, try

  • Under the home tab select Conditional Formatting -> New Rule

Select Conditional Formatting -> New Rule...

  • Use the Use a formula to determine which cells to format

Use a formula to determine which cells to format

  • For Cell B1 the formula can be "=(A1="Yes")", and change the formatting back color to what you wish.

Change color format

  • You can then extend the formatting from B1 to B? as required.

Format from B1 to B?

like image 190
Adriaan Stander Avatar answered Sep 19 '22 08:09

Adriaan Stander