# Formula help

✭✭✭✭✭
edited 12/09/19

How would i add the children rows, that has the below sum?

Grandparent - SUM???

Parent - ="Total: " + COUNTIF(CHILDREN(), 1)

Child - Tick box

Hope this makes sense.

Tags:

• ✭✭✭✭

Hi Sharon I am going to take a stab at this one. Are you trying to get the sum and counts of checked children? In this case the grandparent will show the sum of checked children, and the parent will show the count of checked children? If so:

Grandparent:

=SUMIF(CHILDREN(CheckParentRow), 1, CHILDREN(AmountParentRow))

Parent:

=COUNTIF(CHILDREN(CheckParentRow), 1)

Hope that helps.

• ✭✭✭✭✭

Yes that is what i was asking.   Thank you so much.  ...

• ✭✭✭✭✭

Sorry yes,  but what if you have multiple parent lines with the following sum,

="Total: " + COUNTIF(CHILDREN(), 1)

How do you count a cell that reads Total: 2, Total: 1 Total: 5 = 8

See attached image

• ✭✭✭✭

Simply sum of the children. SmartSheet respects nesting and the relationship, so it will not consider grandchildren if you are looking for a sum of the parents.

## Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!