I want to put into a cell the total of all numbers above that cell in that
column. I want to do this without specifying specific rows. In this way,
if a row were added above the total, it would be included in the total
correctly.
Robert
Ardus Petus - 07 May 2006 13:04 GMT
Hi Robert,
Try:
=SUM(OFFSET(A1,,,ROW()-1,1))
HTH
--
AP
>I want to put into a cell the total of all numbers above that cell in that
>column. I want to do this without specifying specific rows. In this way,
>if a row were added above the total, it would be included in the total
>correctly.
>
> Robert
davesexcel - 07 May 2006 13:15 GMT
=sum(indirect("r1c"&column()&":r"& (row()-1)&"c"&column(),false))

Signature
davesexcel
Ragdyer - 07 May 2006 18:14 GMT
Try this:
=SUM(INDIRECT("A1:A" & ROW()-1))

Signature
HTH,
RD
---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
> I want to put into a cell the total of all numbers above that cell in that
> column. I want to do this without specifying specific rows. In this way,
> if a row were added above the total, it would be included in the total
> correctly.
>
> Robert
Dave Peterson - 07 May 2006 18:43 GMT
One more.
If your formula is in A101:
=sum(a1:offset(a101,-1,0))
> I want to put into a cell the total of all numbers above that cell in that
> column. I want to do this without specifying specific rows. In this way,
> if a row were added above the total, it would be included in the total
> correctly.
>
> Robert

Signature
Dave Peterson
Robert - 08 May 2006 11:44 GMT
>I want to put into a cell the total of all numbers above that cell in that
>column. I want to do this without specifying specific rows. In this way,
>if a row were added above the total, it would be included in the total
>correctly.
>
> Robert