Task Health Formula - Color Ball

In our project plans we have child level task health and then parent level task health in the same column, indicated by a color ball. Previously, we had separate formulas for each level, but I have been working with Pro Desk to implement a formula that will work for all levels and can be a column formula. We are so close to having it how we need - the child level task pieces of the formula are working great. For parent level, we almost have it where we need. The problem I'm having is if the child tasks are a mixed bag that don't necessarily meet the criteria in the formula, the else green statement is catching it. And while the formula is working as expected, in real world scenarios, it isn't accurate. I'm stumped on how we can possibly put criteria in the formula that could take into account every possible scenario of mixed child level status. I'll add picture examples of what is occurring with the mixed child level statuses and the formula as we have it today is below:


=IFERROR(IF([Summary Header]@row = 1, "", IF(Level@row < 2, IF((COUNTIF(CHILDREN(), "Not Defined") / COUNT(CHILDREN()) > 0.6), "Not Defined", IF((COUNTIF(CHILDREN(), "Yellow") / COUNT(CHILDREN()) > 0.5), "Yellow", IF((COUNTIF(CHILDREN(), "Red") / COUNT(CHILDREN()) >= 0.5), "Red", IF(COUNTIF(CHILDREN(), "Blue") = COUNT(CHILDREN()), "Blue", "Green")))), IF([% Complete]@row >= 1, "Blue", IF(ISBLANK([Start Date]@row), "Not Defined", IF([End Date]@row < TODAY(), "Red", IF([End Date]@row < WORKDAY(TODAY(), 3), "Yellow", "Green")))))), "No Data")


Scenario: 3 yellow children, 1 red, and 2 Not Defined is returning parent level = green. While it's accurate according to the formula, in a real world scenario, this should likely fall to yellow.



Scenario: 3 red children, 1 yellow, and 2 Not Defined returning parent level = green. While it's accurate according to the formula, in a real world scenario, this should likely fall to red.


Answers

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!