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))
-
Need more help? 👀 | Help and Learning Center
こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao! 👋 | Global Discussions
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 139 Industry Talk
- 472 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 496 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!