Nested IF AND formula
Using the formula below to determine the health of a project but I need to change it. Right now it is showing the health as yellow if STATUS is Not Started and there are more than 14 days between now and the forecasted end date. I would like for it to show yellow when the STATUS is Not Started and there are 0-14 days between now and the forecasted end date. I would like for it to show green when the status is Not Started and there are more than 14 days between now and the forecasted end date. Any idea on how I accomplish this? Thank you.
=IF([Not Task]@row = 0, IF(COUNT(CHILDREN([Task Name]@row)) > 0, IF(COUNTIF(CHILDREN(), "Red") >= 2, "Red", IF(COUNTIF(CHILDREN(), "Red") = 1, "Yellow", "Green")), IF(Status@row = "Complete", "Gray", IF(Status@row = "Cancel", "Gray", IF(AND(Status@row = "Not Started", ([Today's Date]@row - [Forecast End Date]@row) < 14, ([Today's Date]@row - [Forecast End Date]@row) <> 0), "Yellow", IF(AND(Status@row = "Not Started", ([Today's Date]@row - [Forecast End Date]@row) >= 14), "Red", IF(AND(Status@row = "In Progress", ([Today's Date]@row - [Forecast End Date]@row) < 14, ([Today's Date]@row - [Forecast End Date]@row) <> 0), "Yellow", IF(AND(Status@row = "On Hold", ([Today's Date]@row - [Forecast End Date]@row) < 14, ([Today's Date]@row - [Forecast End Date]@row) <> 0), "Yellow", IF(AND(Status@row = "On Hold", ([Today's Date]@row - [Forecast End Date]@row) >= 14), "Red")))))))))
Answers
-
I figured it out. :)
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63K Get Help
- 379 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
- 304 Events
- 34 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!