Identifying mid-hierarchy rows

KOwsley
KOwsley
edited 02/20/25 in Formulas and Functions

I have a column of checkboxes and for each row I'm trying to identify if it is in the middle of the hierarchy (i.e. has at least one parent and at least one child). I'm trying to use this formula, but I keep getting a Circular Reference error. I can't logically figure out how it is a circular reference. If I remove the AND statement, it works just fine.

Also, it seems to work if I do it for just one row, but the error pops up when I convert it to a Column Formula.

=IF(AND(COUNT(PARENT()) > 0, COUNT(CHILDREN()) > 0), 1, 0)

What am I missing? I can set up a column to check for Parents, and a column to check for Children, and then a column to check both of those checks, but that feels really inefficient.

Best Answer

Answers

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!