How do I use IF formula to change a color based on a percentage column?
I could greatly use some assistance with creating a formula for my sheet that would capture the following:
Currently I have a sheet that contains the following data points:
Quoted GP | Quoted Margin % | Actual GP | Actual GP % | GP Health
$7857 35% $8970 24% ??
In this sheet, I want to be able to do the following, I have set up the GP Health Column to reflect status symbols (Green, Yellow, Red). I need to create a formula that would allow the following:
- If the "Actual GP %" is +/- 5% of the Quoted Margin % mark the GP Health as "Green"
- If the "Actual GP %" is +/- 5-15% of the Quoted Margin % mark the GP Health as "Yellow"
- If the "Actual GP %" is +/- >15% of the Quoted Margin % mark the GP Health as "Red"
Thank You.
Answers
-
Try something like this:
=IF(ABS([Quoted Margin %]@row - [Actual GP %]@row) > 0.15, "Red", IF(ABS([Quoted Margin %]@row - [Actual GP %]@row) <= 0.05, "Green", "Yellow"))
Come see me in Seattle at ENGAGE 2024! I will be at the 10xViz partner booth throughout as well as the "Lets Talk About Community" Meet & Eat table on Tuesday from 11:45am - 12:45pm!
-
I seem to be getting a #Unparseable error message when I applied this formula. Am I missing something?
-
Can you provide a screenshot of the formula open in the sheet as if you are about to edit it?
Come see me in Seattle at ENGAGE 2024! I will be at the 10xViz partner booth throughout as well as the "Lets Talk About Community" Meet & Eat table on Tuesday from 11:45am - 12:45pm!
-
It works.
I checked the formula again and noticed where I had an error, but now I want it to have it reflected as the corresponding colored symbol instead of writing out the color, is that possible? How can I have it reflect as the "red symbol in the GP Health column instead of "red" which is the column the formula you provided me with is in.
Thanks again.
-
You would need to change the column properties to a symbol type column and select the RYG symbol type.
Come see me in Seattle at ENGAGE 2024! I will be at the 10xViz partner booth throughout as well as the "Lets Talk About Community" Meet & Eat table on Tuesday from 11:45am - 12:45pm!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63K Get Help
- 380 Global Discussions
- 212 Industry Talk
- 442 Announcements
- 4.6K Ideas & Feature Requests
- 140 Brandfolder
- 129 Just for fun
- 130 Community Job Board
- 449 Show & Tell
- 30 Member Spotlight
- 1 SmartStories
- 305 Events
- 34 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!