Formula for subtracting child rows from parent total
I need help with a formula where I have a funding total in one column, a second column with Invoice amounts. The invoice rows are children of the top level "funding total" row. I tried the following:
=SUM([Funding Total]@row) - SUM([Invoice Amount](CHILDREN())) Example of it not working:
I can do this formula dealing with a range but it does not deal with the hierarchy especially if I add a new invoice/row: =SUM([Funding Total]@row) - SUM([Invoice Amount]83:[Invoice Amount]86)
Your suggestions are welcome. (note: parent and child relationships have been established)
Best Answer
-
Try this:
=[Funding Total]@row - SUM(CHILDREN([Invoice Amount]@row))
Answers
-
Try this:
=[Funding Total]@row - SUM(CHILDREN([Invoice Amount]@row))
-
You are amazing. Thank you.
-
Happy to help. 👍️
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 65.2K Get Help
- 445 Global Discussions
- 143 Industry Talk
- 476 Announcements
- 5K Ideas & Feature Requests
- 85 Brandfolder
- 150 Just for fun
- 71 Community Job Board
- 488 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 301 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!