How do I find AVG of parent rows?

Hi All,

I have parents and children items in my smartsheet. Some of the parent items have children under them. When I use =AVG(CHILDREN()) it gives me average % complete for each parent item. However I would like to get a total %complete based on all the parent items average.. to do this I tried to use =AVG(Parent()) , but it does not work.. I am getting #DIVIDE BY ZERO error.

I am sure there is a simple solution, I am new to smartsheet and formulas.

Any help would be appreciated.

Thanks in advance.

Answers

  • L_123
    L_123 ✭✭✭✭✭✭

    You need to use a helper column. add a column to your sheet and drop this formula in it (doesn't matter what you name it)

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

    Then reference said newly created column with an averageif with the criteria being the newly created column, the criteria being a 1, and the average range being the range you want to return.

    =averageif(h:h,1,return:return)

  • I figured it out. Thanks!

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!