Project Health Formula Help

Hello,

I've been struggling with this formula. I borrowed parts from other project tracking templates, but I can't seem to get everything to work together; I keep getting error messages. I'm looking to:

  • Project Health turns "Green" for any row that has a Status of "Complete" or if the Target End Date is 1 week out or further
  • Project Health turns "Yellow" for any row that does not have a Status of "Complete", "On Hold", or "Canceled", and the Target End Date is within the next 7 days
  • Project Health turns "Gray" for any row that has a Status of "On Hold" or "Canceled"
  • Project Health turns "Red" for any row that does not have a Status of "Complete", "On Hold", or "Canceled", and the Target End Date is within the next 3 days or is in the past
  • Project Health is “blank” for any row where the Status and Target End Date cells are empty
  • Additionally, if the row has a hierarchy of “1” it should show the average health of its children tasks.

=IF(Hierarchy@row = 1, IF(COUNTIF(CHILDREN(), "Red") > 0, "Red", IF(AND(COUNTIF(CHILDREN(), "Red") = 0, COUNTIF(CHILDREN(), "Yellow") > 0), "Yellow", IF(AND(COUNTIF(CHILDREN(), "Yellow") = 0, COUNTIF(CHILDREN(), "Green") > 0), "Green", "Gray"))),=IF(Status@row = "Complete", "Green", IF(OR(Status@row = "On Hold", Status@row = "Canceled"), "Gray",IF(ISBLANK(Status@row),””,IF(ISBLANK([Target End Date]),””, IF([Target End Date]@row< TODAY(3), "Red", IF([Target End Date]@row <= TODAY(7), "Yellow", "Green"))))

TIA for any help – I’m so formula illiterate.


Thank you! 

Best Answer

Answers

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!