0

Is it possible to a add text to one cell based on another cell colour

IE:

If A1 is Green A2 is "Yes" If A1 is Red A2 is "No"

Qazxswe
  • 139
  • 1
  • 4
  • 10

2 Answers2

0

There are several things slightly off with this question.

  • Conditional formatting, as the name implies, is used to format a cell, not to place a text like "yes" in a cell.
  • Color is not data. Color cannot easily be used to feed values into formulas.
  • conditional formatting can easily be used to turn a cell green if another cell has the value "yes". That's what it's made for. Doing it the other way round is way more complex.

You may want to edit your question and supply some more detail about what you want to achieve without focusing on a particular technique like conditional formatting.

Edit after question was edited:

The architecture is still backwards. What caused the cell to become green?

Instead of changing the color of A1, write "yes" into A2. Then use conditional formatting to turn A1 green based on the value of A2.

Try working with Excel instead of against it.

teylyn
  • 34,374
  • 4
  • 53
  • 73
  • I understand the question @qazxswe and the pain in it. It is people who made the excel sheet trying to against it. The person want to really use excel here is just to clean the shxt afterwards. Bear me with the frastration word. But this is not the answer to the question unfortunately. – Kangqiao Zhao Nov 16 '21 at 06:34
0

Refer to https://stackoverflow.com/a/24383150/4209849 and https://stackoverflow.com/a/15888583/4209849

You can add different text depend on the cell by its side with different colors. And you can imaging more.

What I would like to add is. Even if the color is not within the limitation that the provided answer above could recognize. There is a simple way to use "Find/Replace" in excel to batch replace the original color to a more common color then do the trick.

For me, I want to replace the colored cell with text and then do math on it (count it for example). And "Find/Replace" is working like a charm.

Maybe it is helpful.

Kangqiao Zhao
  • 111
  • 1
  • 8