Simple Formula Excel 2003

B

BJ&theBear

Can anyone give me some suggestions as to resolve a problem
I want to create a formula that can be dragged down without using a
macro
For all you Excel gurus this is rather a pathetic question but I do
not seem to be able to solve it

What I want to do in cell
c1 = sum(a1:a7)
c2 = sum(a8:a15)
c3 = sum(a16:a23)

c4 etc etc

Can anyone point me in the right direction

Thanks

Brian
Scotland
 
J

Jim Cone

Well that depends...
Are you summing a repeating set of: 7 cells, 8 cells, 8 cells ?
-or-
The set size is always 8 cells ?

If the latter then use: =SUM(OFFSET($A$1,(ROW()-1)*8,0,8,1))
--
Jim Cone
Portland, Oregon USA
http://www.mediafire.com/PrimitiveSoftware



"BJ&theBear" <[email protected]>
wrote in message
Can anyone give me some suggestions as to resolve a problem
I want to create a formula that can be dragged down without using a
macro
For all you Excel gurus this is rather a pathetic question but I do
not seem to be able to solve it

What I want to do in cell
c1 = sum(a1:a7)
c2 = sum(a8:a15)
c3 = sum(a16:a23)

c4 etc etc

Can anyone point me in the right direction

Thanks

Brian
Scotland
 
B

BJ&theBear

Well that depends...
Are you summing a repeating set of:  7 cells, 8 cells, 8 cells ?
-or-
The set size is always 8 cells ?

If the latter then use: =SUM(OFFSET($A$1,(ROW()-1)*8,0,8,1))
--
Jim Cone
Portland, Oregon  USAhttp://www.mediafire.com/PrimitiveSoftware

"BJ&theBear" <[email protected]>
wrote in messageCan anyone give me some suggestions as to resolve a problem
I want to create a formula that can be dragged down without using a
macro
For all you Excel gurus this is rather a pathetic question but I do
not seem to be able to solve it

What I want to do in cell
c1 = sum(a1:a7)
c2 = sum(a8:a15)
c3 = sum(a16:a23)

c4 etc etc

Can anyone point me in the right direction

Thanks

Brian
Scotland

Thank you - this worked perfectly

Can you tell me how it tracks which lines to add up as I have never
used offset or row before

Thanks again
Brian
 
J

Jim Cone

There is explanations in Excel help for both Row() and Offset()...

Row returns a number that is the row number of the cell with the formula. (in our use of it)

Offset does two things:
1. It provides a reference that is x rows by y columns away from a specified cell, so...
Offset(A1, 3, 3) returns D4
2. It resizes the returned range to i rows by j columns, so...
Offset(A1, 3, 3, 3, 3) returns range D4:F6 (a range that is 3 rows by 3 columns)
--
Jim Cone
Portland, Oregon USA
http://www.contextures.com/excel-sort-addin.html
(30+ ways to sort - a review)

..
..

"BJ&theBear" <[email protected]>
wrote in message
Well that depends...
Are you summing a repeating set of: 7 cells, 8 cells, 8 cells ?
-or-
The set size is always 8 cells ?

If the latter then use: =SUM(OFFSET($A$1,(ROW()-1)*8,0,8,1))
--
Jim Cone
Portland, Oregon USAhttp://www.mediafire.com/PrimitiveSoftware

"BJ&theBear" <[email protected]>
wrote in messageCan anyone give me some suggestions as to resolve a problem
I want to create a formula that can be dragged down without using a
macro
For all you Excel gurus this is rather a pathetic question but I do
not seem to be able to solve it

What I want to do in cell
c1 = sum(a1:a7)
c2 = sum(a8:a15)
c3 = sum(a16:a23)

c4 etc etc

Can anyone point me in the right direction

Thanks

Brian
Scotland

Thank you - this worked perfectly

Can you tell me how it tracks which lines to add up as I have never
used offset or row before

Thanks again
Brian
 
B

BJ&theBear

There is explanations in Excel help for both Row() and Offset()...

Row returns a number that is the row number of the cell with the formula.(in our use of it)

Offset does two things:
1.  It provides a reference that is x rows by y columns away from a specified cell, so...
   Offset(A1, 3, 3) returns D4
2. It resizes the returned range to i rows by j columns, so...
   Offset(A1, 3, 3, 3, 3) returns range D4:F6 (a range that is 3 rowsby 3 columns)
--
Jim Cone
Portland, Oregon USAhttp://www.contextures.com/excel-sort-addin.html
(30+ ways to sort - a review)

.
.

"BJ&theBear" <[email protected]>
wrote in message






Thank you - this worked perfectly

Can you tell me how it tracks which lines to add up as I have never
used offset or row before

Thanks again
Brian

Thanks Jim - I apprecaite your help

Brian
Scotland
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Formula Query 9
PLEASE HELP TO MATCH ALL SHEET AND THEN MERGE, 1
Formula help 2
Excel 2013 1
formula or code help 3
Excel 2013: AutoFilter and SUM() 1
Copy down (propagate) function/forumula needed 4
Bug in Excel? 2

Top