Forum Discussion
Giving a colored cell a numerical value
Hi all, I'm new to the discussion board, but I am stumped on trying to write an IF statement on what I want to do.
What I want to do, is give a value based on the colored cell, for example, green = 1, yellow = 2, orange = 3, red = 4. Each cell has text in it already (non-numerical texts), but they're highlighted based on the urgency level for our institution.
Given there are rows with a variety of green/yellow/orange/red cells, I want a cell that calculates them based on the value above, divide that sum by 4, and condition that cell to a color based on the end result.
Overall, my question is it possible to give a color a value? I understand I can condition a cell to a color based on the value, but this issue is entirely different.
Thanks,
TD
5 Replies
Could you attach a small sample workbook demonstrating the problem (without sensitive data), or if that is not possible, make it available through OneDrive, Google Drive, Dropbox or similar?
- TuanDCopper Contributor
These are just metrics, not sensitive information. But this is the dataset I was given and am working with.
For example, Lines 16-19 (four rows), one of the column will be colored based on today's patient volumes. In this example, I need B16=1, E17=4, E18=4, and B19=1, (because I need green=1, orange=2, yellow=3, red=4).
So then to tally the colored values, it should be 10.
As I type this, it sounds confusing, but basically I need the color to equal a numerical value, if that makes any sense.
Have B16, E17 etc. been colored manually or do you use conditional formatting rules to color them?