Sum of only last child in cell range
Hi there
I would like to count the values of only the last children in the column. Some cells have one indent, some more, so I would like to know the formula, to count only the last indent children. Below is an example what I would like to achieve. The result of the formula should be 350.
Additionaly I would like to provide a range of dates to count from.
Thank You
Best Answer
-
Ok to answer my own question after searching :)
I created a helper row with this formula:=IF(COUNT(CHILDREN(cost@row)) > 0, COUNT(ANCESTORS()) + 1, 0)
Which gets 0, if row has no children.
And then to sum everything up:=SUMIFS(cost:cost, helper:helper, 0, date:date, >=DATE(2025, 1, 1), date:date, <DATE(2025, 3, 31))
Answers
-
Ok to answer my own question after searching :)
I created a helper row with this formula:=IF(COUNT(CHILDREN(cost@row)) > 0, COUNT(ANCESTORS()) + 1, 0)
Which gets 0, if row has no children.
And then to sum everything up:=SUMIFS(cost:cost, helper:helper, 0, date:date, >=DATE(2025, 1, 1), date:date, <DATE(2025, 3, 31))
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
- 300 Events
- 39 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!