Quantcast
Channel: Hot Weekly Questions - Web Applications Stack Exchange
Viewing all articles
Browse latest Browse all 9782

Subtract from running total across multiple cells

$
0
0

I'm trying to create a spreadsheet to track deposits into an account with a set yearly maximum. However, "unused" previous years can be added to the total available room.

This leaves me with unequal values though, and I can't end up with a negative amount. If I have a column with available room per year, and another column for payments per year, then I could manually add up the amount used and subtract a portion of the running total from each row. But I feel like there should be a way to come up with a smarter formula to do that.

Something like this would be the end result:

Desired table

I've found articles/solutions suggesting ArrayFormula for kinda similar calculations (like debt payments), but they don't quite get me this far. Is there a solution?


Viewing all articles
Browse latest Browse all 9782

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>