Automate Health

I would like to have the parent row of my health column automatically be red, green or yellow based on the average health of it's child rows.

Does anyone have an idea of how to accomplish this?

Comments

  • Paul Newcome
    Paul Newcome ✭✭✭✭✭✭

    What do you mean by "average"? Do you mean the majority of colors determine the parent or are you looking more for a "scoring" type of thing where each color is given a number, those numbers are averaged together, and then that determines the Parent Row color?

  • Werner Gerstacker
    Werner Gerstacker ✭✭✭✭✭

    My algorithm to achieve this - for columns, not child rows - lookslike this:

    =IF(COUNTIF(Schedule1:Quality1, "Gray") + COUNTIF(Schedule1:Quality1, "Green") = 4, "Green", IF(COUNTIF(Schedule1:Quality1, "Red") > 0, "Red", "Yellow"))

    You would probably have to do some nested IF and COUNTF formulas to achieve something similar for child rows, maybe even combined with some fractions like COUNTIF/COUNT to trigger the correct result from the IF statements.

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!