Forum Discussion
Xilli620
Dec 26, 2021Copper Contributor
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
Sort By
That's with VBA, formulae don't work with cell properties like color.
- Xilli620Copper Contributor
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
- mtarlerSilver ContributorMay 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.