Nested IF AND formula

Options

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

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!