Parent cell return Data based off of Children Data

Options

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 ✭✭
    Options

    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 ✭✭✭✭✭✭
    Options

    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.

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!