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
- Customer Resources
- 68K Get Help
- 474 Global Discussions
- 208 Use Cases
- 517 Announcements
- 5.6K Ideas & Feature Requests
- 87 Brandfolder
- 157 Just for fun
- 85 Community Job Board
- 521 Show & Tell
- 36 Member Spotlight
- 3 SmartStories
- 309 Events
- 37 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!