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
-
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
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.5K Get Help
- 402 Global Discussions
- 213 Industry Talk
- 450 Announcements
- 4.7K Ideas & Feature Requests
- 141 Brandfolder
- 135 Just for fun
- 56 Community Job Board
- 454 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 296 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!