Parent cell return Data based off of Children Data

Hello,

I am trying to figure out how to put the following into a formula:

If values in any child rows include "In Progress" then populate parent as "In Progress",

otherwise...

If values in child rows do not include "In Progress" or Blank then populate parent as "Not Started".

otherwise...

If values in ALL child rows include "Complete" then populate parent as "Complete".

The column I am working in is a dropdown with 4 possible values mentioned above "Not Started", "In Progress", "Complete", "Awaiting Inspection."

Thank you.

Tags:

Answers

  • malanto
    malanto ✭✭

    Hello,

    I think " If values in child rows do not include "In Progress" or Blank then populate parent as "Not Started" " it's wrong.

    For example if alla values include "complete" and don't include "in progress", parent is "not started" and not "complete"

    Can you explain me the second condition?

    Thank you ;-)

  • Paul Newcome
    Paul Newcome ✭✭✭✭✭✭

    Try something like this:

    =IF(COUNTIFS(CHILDREN(), @cell = "Complete") = COUNTIFS(CHILDREN(), AND(@cell = "", @cell <> "")), "Complete", IF(COUNTIFS(CHILDREN(), @cell = "In Progress")> 0, "In Progress", "Not Started"))


    The only thing the above does not account for is "Awaiting Inspection", so if you are able to provide the logic behind that status, we should be able to get it built in.

    Come see me in Seattle at ENGAGE 2024! I will be at the 10xViz partner booth throughout as well as the "Lets Talk About Community" Meet & Eat table on Tuesday from 11:45am - 12:45pm!

    CERTIFIED SMARTSHEET PLATINUM PARTNER

    10xViz.com

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!