Hi,
I'm trying to create a spreadsheet using the subtotal formula. The goal is to use the current balance to calculate new balances at every credit/debit. However, I ran into the problem below:
Credit
/Debit Balance
100
20 120 =SUBTOTAL(9,OFFSET(B4,-1,0),OFFSET(B4,0,-1))
-30 -30 =SUBTOTAL(9,OFFSET(B5,-1,0),OFFSET(B5,0,-1))
50 50 =SUBTOTAL(9,OFFSET(B6,-1,0),OFFSET(B6,0,-1))
Now, the first subtotal result -- the value in cell B4 -- is correct (100 + 20 = 120); however, cells B5 and B6 doesn't add the cell immediately above and the cell immediately to the left, as referred to in OFFSET -- it merely sees the cell above as a "0", then adds it to the value on the left. This gave me a value of -30 instead of 90 (120 - 30) in cell B5, and a value of 50 instead of 140 (90 + 50) in cell B6. Is this because the SUBTOTAL function ignores other subtotals? If so, then the only way I can have these individual sums done is by using the SUM function?
Thanks!
Byron
Bookmarks