ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   How do I format a cell based on the contents of a different cell? (https://www.excelbanter.com/excel-discussion-misc-queries/219877-how-do-i-format-cell-based-contents-different-cell.html)

Zoe McGoe

How do I format a cell based on the contents of a different cell?
 
I have a column of values that can have one of four possible values in each
cell - let's say Red, Amber, Yellow or Green. If the cell has the text
"red" in it, I would like to set a fill color of red in the cell immediately
adjacent to the cell containing the actual word "red". I'm having a heck of
a time finding a way to do this. Anyone have any ideas?

Thanks,
Z~

Bill Kuunders

How do I format a cell based on the contents of a different cell?
 
Assume the words are in the range A1:A20
Select the range B1:B20
Goto FormatConditional Formatting
select "Formula is" in the dropdown where it says "cell
value is": and enter next to that =A1="red"


Click the Format button
Select the style(s) desired

You can from there add another two formats
say for green and amber
use the "add" selection in the conditional format window

--
Greetings from New Zealand

"Zoe McGoe" <Zoe wrote in message
...
I have a column of values that can have one of four possible values in each
cell - let's say Red, Amber, Yellow or Green. If the cell has the text
"red" in it, I would like to set a fill color of red in the cell
immediately
adjacent to the cell containing the actual word "red". I'm having a heck
of
a time finding a way to do this. Anyone have any ideas?

Thanks,
Z~





All times are GMT +1. The time now is 02:35 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com