COUNTIF(CHILDREN() with AND for multiple condition check

Hi Folks

I'm brain fogged as I've been putting together a nest of IFs to perform status roll up values to a parent off the values of the children and am hoping someone has a thought.

I'm spinning on one bit that checks if the count of Late status is less then 0 AND count of Delayed is greater than 0. If true, then it should be Delayed. If it's False then it'll drop top the next line that checks count of Late is greater than 0

It is a long formula that is working, here is a snip of the section, in bold is the issue;

...

IF(COUNTIF(CHILDREN(), "Canceled")+COUNTIF(CHILDREN(), "Not Applicable")+COUNTIF(CHILDREN(), "Not Started") = COUNT(CHILDREN()), "Not Started",

IF(COUNTIF(CHILDREN(), "Canceled")+COUNTIF(CHILDREN(), "Complete")+COUNTIF(CHILDREN(), "Not Applicable")+COUNTIF(CHILDREN(), "Not Started") = COUNT(CHILDREN()), "In Progress",

IF(AND(COUNTIF(CHILDREN(), "Late")<0,(COUNTIF(CHILDREN(), "Delayed")>0,"Delayed",

IF(COUNTIF(CHILDREN(), "Late")>0,"Late",

IF(COUNTIF(CHILDREN(), "In Progress")>0,"In Progress","---")))))))))))))))))))))))

Thank you,

Shawn

Best Answer

Answers

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!