Is it possible to set a cell color based on the value of the adjacent cell?
It is certainly possible with Excel 2010, which is one of your tags if not directly referenced in your question.
Create a conditional format for one of the cells on the left which references the cell to its immediate right. You should do this with the Use a formula to determine which cells to format option of the Rules Manager.
Create a rule for red/green on yes/no as you require.
The creation will automatically place $ symbols in the formula which, of course, restrict the formula to a cell.
Edit the formula in the Rules Manager to remove the $ from the column.
Save the formula
Use Format Painter to paste the formula down the whole left hand column.
You will end up with something like the following in the Rules Manager.
There are probably simpler ways to do it but this works for me.
Related videos on Youtube
tasty
Updated on September 18, 2022Comments
-
tasty over 1 year
I am not an active user of excel so I am not very certain if coloring the cell based on another cell's value is possible at all.
Suppose I have these cells:
I want the cell with
Good string
to be colored green the same way asYES
cell is. Same goes toBad string
cell.The final result should look like this:
Is it possible to do in MS Excel 2013 and how?
-
tasty almost 10 yearstwo cells, first contains
some string
second containsYES
/NO
keyword. I want the first(left) cell to be filled with green if the second(right) isYES
and red if it isNO
-
CharlieRB almost 10 yearsHow are the "Yes" and "No" cells being colored now? Are you using conditional formatting?
-
tasty almost 10 yearsYes, I use conditional formatting rules to color
YES
as green andNO
as red. But I'd rather have the left-adjacent cells colored if the right cell isYES
/NO
-