Risk Formula (Red, Yellow, Green)
I am using the formula below to automatically calculate risk. I am using percent complete of a task against time complete off the start and end dates.
=IF([%CMPLT]@row >= (NETDAYS(TODAY(), [End Date]@row) / NETDAYS([Start Date]@row, [End Date]@row)), "Green", IF([%CMPLT]@row > 0, "Yellow", "Red"))
So if my start and end date calculates 50% of the time complete and we only have 30% of that task done we will get a "Yellow" orb.
This formula works great if we have current start dates. But if the start date is in the future the orb turns red. I don't know how to make a condition saying if start date is in the future default the orb to "green."
Any help would be much appreciated.
Best Answer
-
YES!
=IF([Start Date]@row > TODAY(), "Green", IF([%CMPLT]@row >= (NETDAYS(TODAY(), [End Date]@row) / NETDAYS([Start Date]@row, [End Date]@row)), "Green", IF([%CMPLT]@row > 0, "Yellow", "Red"))
This worked, thank you so much!
Answers
-
=IF([Start Date]@row > TODAY(), "Green", IF[%CMPLT]@row >= (NETDAYS(TODAY(), [End Date]@row) / NETDAYS([Start Date]@row, [End Date]@row)), "Green", IF([%CMPLT]@row > 0, "Yellow", "Red"))
This should fix the problem, as it will first look for any that are starting in the future and make those green, before looking at any of the other values.
Smartsheet Community Champion and Ambassador
If my answer helped you, please be sure to mark it as Accepted to help future learners locate the information.
-
YES!
=IF([Start Date]@row > TODAY(), "Green", IF([%CMPLT]@row >= (NETDAYS(TODAY(), [End Date]@row) / NETDAYS([Start Date]@row, [End Date]@row)), "Green", IF([%CMPLT]@row > 0, "Yellow", "Red"))
This worked, thank you so much!
-
Glad I was able to help. @ChristineB
Smartsheet Community Champion and Ambassador
If my answer helped you, please be sure to mark it as Accepted to help future learners locate the information.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.9K Get Help
- 410 Global Discussions
- 219 Industry Talk
- 457 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 136 Just for fun
- 57 Community Job Board
- 459 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 298 Events
- 37 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!