Excuse the primitive nature of the question; I searched for the
answer in a couple of Excel groups, but I suspect it's so simple
that the question isn't asked.
I rarely use Excel, but I need to produce a running total: I
want each cell in column B to contain the total of the cells in
column A starting with A1 thru the current row in column A. So:
B1=A1, B2=A1+A2, B3=A1+A2+A3, etc.
I can't figure how to specify a formula that I can copy into
each cell in column B to accomplish this. I'm assuming that I
can use SUM, but I can't seem to find a way to specify the cell
range so that copying the formula from one cell in column B, to
the remaining cells in column B, retains the correct cell
references.
Thanks.
Peo Sjoblom - 12 Apr 2007 16:28 GMT
In B1 put
=SUM($A$1:A1)
then copy the formula down as long as needed

Signature
Regards,
Peo Sjoblom
> Excuse the primitive nature of the question; I searched for the answer in
> a couple of Excel groups, but I suspect it's so simple that the question
[quoted text clipped - 12 lines]
>
> Thanks.
John Pollard - 12 Apr 2007 18:37 GMT
Thanks, just what I needed.
> In B1 put
>
[quoted text clipped - 18 lines]
>> cells in column B, retains the correct cell references.
>> Thanks.
Pete_UK - 12 Apr 2007 17:01 GMT
Try it this way:
B1: =A1
B2: =A2+B1
B3: =A3+B2
Copy B2 (or B3) down for as many values as you have in column A.
Hope this helps.
Pete
> Excuse the primitive nature of the question; I searched for the
> answer in a couple of Excel groups, but I suspect it's so simple
[quoted text clipped - 13 lines]
>
> Thanks.
John Pollard - 12 Apr 2007 18:40 GMT
I was playing with something like this, but never got it quite
right. Thanks.
> Try it this way:
>
[quoted text clipped - 8 lines]
>
> Pete
>> Excuse the primitive nature of the question; I searched
>> for the answer in a couple of Excel groups, but I
[quoted text clipped - 14 lines]
>>
>> Thanks.
Roger Govier - 12 Apr 2007 21:55 GMT
Hi John
Just a note.
If it is going to be a long list, then although both Peo's method and
Pete's achieve the same result.
the number of processes that Excel has to perform to get the answer is
much reduced in Pete's solution, so it will be faster.
On a small range, you won't notice the difference.

Signature
Regards
Roger Govier
>I was playing with something like this, but never got it quite right.
>Thanks.
[quoted text clipped - 30 lines]
>>>
>>> Thanks.
Peo Sjoblom - 12 Apr 2007 22:31 GMT
Hello Roger,
another thing is if the results in B are derived from for example a formula
where the result can be a "blank" like "" then the formula using operators
will return a value error while SUM will ignore any text

Signature
Regards,
Peo Sjoblom
> Hi John
>
[quoted text clipped - 40 lines]
>>>>
>>>> Thanks.
Roger Govier - 13 Apr 2007 10:47 GMT
Hi Peo
Yes that is quite correct.
It's just that I am ever mindful of the timings that David McRitchie
posted when there are large ranges involved
http://snipurl.com/1gbgf
and since then I have usually avoided this type of formula
I suppose one could overcome the problem of summing blanks by using
=N(A2)+B1

Signature
Regards
Roger Govier
> Hello Roger,
>
[quoted text clipped - 47 lines]
>>>>>
>>>>> Thanks.
John Pollard - 13 Apr 2007 20:10 GMT
Thank you all. I love the internet and newsgroups, and those
who help. I'm saving all this; hopefully next time I won't need
to ask.
> Hi Peo
>
[quoted text clipped - 67 lines]
>>>>>> remaining cells in column B, retains the correct
>>>>>> cell references. Thanks.