Sum of Parent and Child but also provide the Parent data when no Child present
I would like to calculate the Sum of the Parent and the Child data under Number of Compounds Tested, however I do not always have a child and only a Parent at times. I did create a Helper Cell Hierarchy but cant seem to find the correct formula. When there is a child, I do not want any sum calculated in that row as for this given project the information would be only featured on the row of the Parent.
What would be the best formula?
Answers
-
Are you able to provide some screenshots for more context? sample data is fine to show the structure and expected operation.
-
Here
-
Create a column labeled P. Column Formula =ANCESTORS([Vendor Study ID]@row). Create a second column labeled C. Column Formula =CHILDREN([Vendor Study ID]@row).
IF(P@row >0, "", IF(P@row = 0, SUM(CHILDREN([Number of Compounds to be Tested]@row + [Number of Compounds to be Tested]@row )
I use P & C on ALL of my sheets as helpers.
Michelle Choate
michelle.choate@outlook.com
Always happy to walk through any project you need help with!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.2K Get Help
- 419 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 142 Just for fun
- 58 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 299 Events
- 38 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!