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
- 64.1K Get Help
- 412 Global Discussions
- 220 Industry Talk
- 459 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 140 Just for fun
- 57 Community Job Board
- 461 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 299 Events
- 38 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!