Traffic light formula based on date and % complete
Hi, I'm wondering if someone is able to help adjust this formula slightly to include the following information, I just can't seem to get it right:
Current formula:
=IF([% Complete]@row = 1, "Gray", IF([Start Date]@row > TODAY(), "Green", IF(AND([% Complete]@row < 1, [End Date]@row <= TODAY(+2)), "Red", IF(AND([% Complete]@row < 1, [End Date]@row >= TODAY(-2)), "Yellow"))))
Updating to the following:
Green: Status is at Not started and % complete is at 0%
Red: Status is at Not Started or In Progress, passed its due date and % complete is less than 100% or In Progress and less than 80% 2 days before due date.
Yellow: Status is In Progress and less than 100% either before or after the start date
Grey: Status is Complete and % complete is at 100%
Thank you!
Best Answer
-
HI @EricaUni
This formula should do the trick for you
=IF(AND(Status@row = "Complete", [% Complete]@row = 1), "Gray", IF(AND(Status@row = "Not Started", [% Complete]@row = 0), "Green", IF(OR(AND(Status@row = "In Progress", [% Complete]@row < 0.81, TODAY() - [End date]@row < 3), AND(OR(Status@row = "In Progress", Status@row = "Not Started"), [% Complete]@row < 1, [End date]@row < TODAY())), "Red", IF(AND(Status@row = "In Progress", [% Complete]@row < 1), "Yellow", "Error"))))
Tested and working based on your requirements
Hope that helps
Thanks
Paul
Answers
-
HI @EricaUni
This formula should do the trick for you
=IF(AND(Status@row = "Complete", [% Complete]@row = 1), "Gray", IF(AND(Status@row = "Not Started", [% Complete]@row = 0), "Green", IF(OR(AND(Status@row = "In Progress", [% Complete]@row < 0.81, TODAY() - [End date]@row < 3), AND(OR(Status@row = "In Progress", Status@row = "Not Started"), [% Complete]@row < 1, [End date]@row < TODAY())), "Red", IF(AND(Status@row = "In Progress", [% Complete]@row < 1), "Yellow", "Error"))))
Tested and working based on your requirements
Hope that helps
Thanks
Paul
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 139 Industry Talk
- 471 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 496 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!