RYG Formula Average

Frank@BSF
Frank@BSF
edited 12/09/19 in Smartsheet Basics

Is there a way to take the average of the RYG colors and roll it up to an overall summary for a section and then the overall section to the overall project summary? I've included a snapshot of what I'm talking about.

RYG Formula Average.PNG

Comments

  • Andrée Starå
    Andrée Starå ✭✭✭✭✭✭

    Hi Frank,

    Yes, it is. You'd need to decide on the rules for when it should be R,, Y or G.

    What are your criteria?

    Hope that helps!

    Have a fantastic week!

    Best,

    Andrée Starå

    Workflow Consultant @ Get Done Consulting

    SMARTSHEET EXPERT CONSULTANT & PARTNER

    Andrée Starå | Workflow Consultant / CEO @ WORK BOLD

    W: www.workbold.com | E:andree@workbold.com | P: +46 (0) - 72 - 510 99 35

    Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.

  • The end users decided an selects based on the task if it is red-at risk, green - on track, yellow in between on track and at risk.  Some fields might be blank if it is not filled in but we would like to take the average of the colors and assign the overall status.  I hope this makes sense.

  • Andrée Starå
    Andrée Starå ✭✭✭✭✭✭

    Try something like this.

    Add the formula to all parents in the status column.

    =IF(AND(COUNTIF(CHILDREN(); "Green") > COUNTIF(CHILDREN(); "Yellow"); COUNTIF(CHILDREN(); "Green") > COUNTIF(CHILDREN(); "Red")); "Green"; IF(AND(COUNTIF(CHILDREN(); "Red") > COUNTIF(CHILDREN(); "Green"); COUNTIF(CHILDREN(); "Red") > COUNTIF(CHILDREN(); "Yellow")); "Red"; "Yellow"))

    The same version but with the below changes for your and others convenience.

    =IF(AND(COUNTIF(CHILDREN(), "Green") > COUNTIF(CHILDREN(), "Yellow"), COUNTIF(CHILDREN(), "Green") > COUNTIF(CHILDREN(), "Red")), "Green", IF(AND(COUNTIF(CHILDREN(), "Red") > COUNTIF(CHILDREN(), "Green"), COUNTIF(CHILDREN(), "Red") > COUNTIF(CHILDREN(), "Yellow")), "Red", "Yellow"))

    Depending on your country you’ll need to exchange the comma to a period and the semi-colon to a comma.

    Would that work?

    Best,

    Andrée

    SMARTSHEET EXPERT CONSULTANT & PARTNER

    Andrée Starå | Workflow Consultant / CEO @ WORK BOLD

    W: www.workbold.com | E:andree@workbold.com | P: +46 (0) - 72 - 510 99 35

    Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.