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
- 64.8K Get Help
- 434 Global Discussions
- 138 Industry Talk
- 470 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 65 Community Job Board
- 486 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!