# Status Formula

Options
✭✭

I need some help fine-tuning this formula. I need it to follow the following rules. Open to better options!!!

It would need to be on a parent row. It will summarize the children's status.

Rules:

If all are 'Not Started' then the summary should show 'Not Started'.

If all are 'Completed' then the summary should show 'Completed'.

If all are 'On Hold' then the summary should show 'On Hold'.

If all are 'Cancelled' then the summary should show 'Cancelled'.

If even 1 is 'In Progress' then the summary should show 'In Progress'

**The formula below is working except 'Not Started' is trumping the 'In Progress'. **

=IF(COUNT(DESCENDANTS()) = COUNTIFS((DESCENDANTS()), OR(@cell = "Not Started", @cell = " ")), "Not Started", IF(COUNT(CHILDREN()) = COUNTIF(CHILDREN(), "Complete"), "Complete", IF(COUNT(CHILDREN()) = COUNTIF(CHILDREN(), "Canceled"), "Canceled", IF(COUNT(CHILDREN()) = COUNTIF(CHILDREN(), "On Hold"), "On Hold", IF(OR(CONTAINS("In Progress", CHILDREN()), AND(COUNTIF(CHILDREN(), "Complete") > 0, COUNTIF(CHILDREN(), "On Hold") > 0)), "In Progress", IF(OR(CONTAINS("Not Started", CHILDREN()), AND(COUNTIF(CHILDREN(), "") > 0, COUNTIF(CHILDREN(), "On Hold") > 0)), "Not Started", IF(OR(CONTAINS(ISBLANK(), CHILDREN()), AND(COUNTIF(CHILDREN(), "Not Started") > 0, COUNTIF(CHILDREN(), "On Hold") > 0)), "Not Started")))))))

Tags:

• ✭✭✭✭✭✭
Options

Give this a try:

=IF(COUNTIFS(CHILDREN(), OR(@cell = "Not Started", @cell = "")) = COUNTIFS(CHILDREN(), OR(@cell = "", @cell <> "")), "Not Started", IF(COUNTIFS(CHILDREN(), @cell = "Complete") = COUNTIFS(CHILDREN(), OR(@cell = "", @cell <> "")), "Complete", IF(COUNTIFS(CHILDREN(), @cell = "On Hold") = COUNTIFS(CHILDREN(), OR(@cell = "", @cell <> "")), "On Hold", IF(COUNTIFS(CHILDREN(), @cell = "Cancelled") = COUNTIFS(CHILDREN(), OR(@cell = "", @cell <> "")), "Cancelled", "In Progress"))))

• ✭✭✭✭✭✭
Options

Give this a try:

=IF(COUNTIFS(CHILDREN(), OR(@cell = "Not Started", @cell = "")) = COUNTIFS(CHILDREN(), OR(@cell = "", @cell <> "")), "Not Started", IF(COUNTIFS(CHILDREN(), @cell = "Complete") = COUNTIFS(CHILDREN(), OR(@cell = "", @cell <> "")), "Complete", IF(COUNTIFS(CHILDREN(), @cell = "On Hold") = COUNTIFS(CHILDREN(), OR(@cell = "", @cell <> "")), "On Hold", IF(COUNTIFS(CHILDREN(), @cell = "Cancelled") = COUNTIFS(CHILDREN(), OR(@cell = "", @cell <> "")), "Cancelled", "In Progress"))))

• ✭✭
Options

Thank you Paul!!!!

• ✭✭✭✭✭✭
Options

Happy to help. 👍️

## Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!