Hi Arvi,
That's an interesting variation for a running total and probably one
that would take longer than the other solutions with SUM. However, and this
applies to the other responses as well. Once you have a lot of rows and it will
slow down the entire workbook. . You not will notice the slowdown for a small
worksheet, so it may not seem to matter at first. But adding another row around
row 4000 is going to require something like 4000 additions plus 4000 subtractions
for that cell compared to 1 addition and 1 subtraction using OFFSET to
use the Balance Sum from the previous row.
You will have to be concerned with empty rows in between unlike the
use of SUM for a running total.
As far as calculation speed goes, I would avoid all use of SUM for
a running total. See the following with it's links in
Slow Response and Memory Problems
http://www.mvps.org/dmcritchie/excel/slowresp.htm
Use of SUM Worksheet Function for running balances as in
=SUM(D$2
2) filled-down can take excessive time (misc 2003-01-31).
Use of SUM is fine for simple totals as in
=SUM(D$2:OFFSET(D20001,-1,0)), but not for running balances.
The use of OFFSET in running balances as in =OFFSET(D3,-1,0)+D3 is
much better than =D2+D3 when it comes to maintaining formulas and the
timing difference is insignificant relative to maintenance.
More on Running totals and the use of OFFSET in
Insert a Row using a Macro to maintain formulas
http://www.mvps.org/dmcritchie/excel/insrtrow.htm
HTH,
David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
My Excel Pages:
http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page:
http://www.mvps.org/dmcritchie/excel/search.htm
Arvi Laanemets said:
Hi
P.e. into B2 enter the formula
=SUM(A:A)-SUM(A$1:A2)
--
(When sending e-mail, use address (e-mail address removed))
Arvi Laanemets
turtleman2 said:
[Excel 2002] I'm looking for the formula that will calculate a running
total for a column from a point/cell halfway down that column,
extending down to-and-including the most recent entry.
Obviously, for an entire-column running total, the
"=SUM(column_name:column_name)" would work, but I don't want to include
the first
-n- group of cells.
Thanks for your time & attention to detail ;-}
Terry.
------------------------------------------------
~~Now Available: Financial Statements.xls, a step by step guide to
creating financial statements