Change color of cell based on another cell color

If background color of cell A1 is red, then change background color of B1 cell into red. Is it possible?

Mac mini, null

Posted on May 17, 2018 10:13 PM

Reply
5 replies

May 24, 2018 1:05 AM in response to cross14

Hi cross14,


A cell's colour fill is 'format', not 'content.' Yellowbox has already told you "A cell can't "read" the format in another cell."


Conditional highlighting, which used to be called 'conditional formatting,' depends on comparing the content of the cell to be formatted (B1 in your case) with a fixed value, or with the value contained in another cell.


What determines if cell A1 is coloured with red fill? If we know that, then we may be able to provide you with a way to use that content to create situation that will make cell B1 also have red fill applied.


So, to repeat the question, "What is the condition under which A1 will 'have a red background'?


Regards,

Barry

May 24, 2018 4:24 AM in response to cross14

Hi cross14,


Please don't keep us guessing 😎.

What is the condition under which A1 will 'have a red background'?


Here is an example using Conditional Highlighting.

The condition I have used is that a cell in column A contains a value of X.

When that condition is met, the cell in A and its companion cell in B both have a red fill.

We need two extra columns (C and D) for this to work with Conditional Highlighting. You can hide columns C and D after you get this to work.

User uploaded file

Formula in C1 =IF($A1="X",A1,"")

Fill the formula right into D1

Fill the formula down columns C and D.


The Conditional Highlighting rule applied to column A looks for a content match in the same row in column C.

The Conditional Highlighting rule applied to column B looks for a content match in the same row in column D.


If this is what you want, it is easy to create a single Conditional Highlighting rule for all cells in columns A and B.

Please reply with your overall aim.


Regards,

Ian.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Change color of cell based on another cell color

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.