Forum Discussion

Xilli620's avatar
Xilli620
Copper Contributor
Dec 26, 2021

How do I use the background color of a cell as an argument in a function.

I need to get an "OK" if the background color in a cell is green or a "NO" if not.

Something like:
IF('Background Color in cell V3=green'; "OK"; "NO")
How do I do that correctly in Excel.

6 Replies

    • Xilli620's avatar
      Xilli620
      Copper Contributor

      SergeiBaklan 

      Thank you very much. Then I will not struggle with formulae in Excel further. 🙂 I'll check out VBA and learn. 

      Merry Christmas and Happy New Year

      • mtarler's avatar
        mtarler
        Silver Contributor
        May I ask how the cell is getting that color? If it is getting a color through conditional formatting then the same condition/formula used to get the color can be used. If it is based on manual entry (i.e. someone manually sets the color) then I suggest you change the set up so they enter a value instead (maybe using 'helper' cells/columns). The color can then automatically use those manual entries to create the colors AND you can use those entries in your formulas.

Resources