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

Answers

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!