Formula Help
Hello Smartsheet Community,
I am trying to figure out how to write a formula to highlight individual cells based on if the "Actual" number inputted into a specific cell is greater than or equal to or less than the "Target" amount. For example, if my "Target" for the month of July is to sell 500 widgets and I actually sold 300, I want the "Actual" cell to turn red. Or, If I sold 500 or more then, I want the "Actual" cell to turn green.
I tried using the conditions workflow, but I could not get it to work. I'm not sure if it's how I have the sheet formatted. Any help or suggestions would be greatly appreciated.
Best Answer
-
You would need a separate column to house a formula along the lines of...
=IF(Target@row = "Actual", IF([July 2022]@row< INDEX(COLLECT([July 2022]:[July 2022], [Task Name]:[Task Name], @cell = [Task Name]@row, Target:Target, @cell = "Target"), 1), "red", "green"))
You would then hide this column to keep the sheet looking clean and apply the conditional formatting to be based on this column and applicable only to the [July 2022] column.
Answers
-
You would need a separate column to house a formula along the lines of...
=IF(Target@row = "Actual", IF([July 2022]@row< INDEX(COLLECT([July 2022]:[July 2022], [Task Name]:[Task Name], @cell = [Task Name]@row, Target:Target, @cell = "Target"), 1), "red", "green"))
You would then hide this column to keep the sheet looking clean and apply the conditional formatting to be based on this column and applicable only to the [July 2022] column.
-
Thanks Paul. That formula worked great! I appreciate the help.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.8K Get Help
- 434 Global Discussions
- 138 Industry Talk
- 470 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 65 Community Job Board
- 486 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!