Formula help

SharonR
SharonR ✭✭✭✭✭
edited 12/09/19 in Formulas and Functions

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. 

 

 

Comments

  • Marcus Odum
    Marcus Odum ✭✭✭✭

    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.

    2018-10-08 21_20_24-Smartsheet.png

  • SharonR
    SharonR ✭✭✭✭✭

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

     

  • SharonR
    SharonR ✭✭✭✭✭

    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

    chopshop.PNG

  • Marcus Odum
    Marcus Odum ✭✭✭✭

    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.

    2018-10-10 09_26_24-Smartsheet.png

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!