Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
sandy
 
Posts: n/a
Default Sum rows in groups

I have a column with 10,000 rows of numbers. I need to sum a1:a5, a6:a10,
a11:a15, and so on in groups of five, for all 10,000 rows. How can I do
this? Thanks much.
  #2   Report Post  
Duke Carey
 
Posts: n/a
Default

=SUM(OFFSET(A1,5*ROW(A1)-1,0,5,1))

Put that in the first cell where you want the sums to start and copy it down
the column.

"sandy" wrote:

I have a column with 10,000 rows of numbers. I need to sum a1:a5, a6:a10,
a11:a15, and so on in groups of five, for all 10,000 rows. How can I do
this? Thanks much.

  #3   Report Post  
sandy
 
Posts: n/a
Default

Can't get it Duke. The first sum is incorrect and the next formula down
starts with the next number copied down to (a2, a3, a4). What am I doing
wrong? Thanks for your help. Sandy

"Duke Carey" wrote:

=SUM(OFFSET(A1,5*ROW(A1)-1,0,5,1))

Put that in the first cell where you want the sums to start and copy it down
the column.

"sandy" wrote:

I have a column with 10,000 rows of numbers. I need to sum a1:a5, a6:a10,
a11:a15, and so on in groups of five, for all 10,000 rows. How can I do
this? Thanks much.

  #4   Report Post  
Domenic
 
Posts: n/a
Default

In article ,
"sandy" wrote:

I have a column with 10,000 rows of numbers. I need to sum a1:a5, a6:a10,
a11:a15, and so on in groups of five, for all 10,000 rows. How can I do
this? Thanks much.


Try...

B1, copied down:

=SUM(OFFSET($A$1,(ROW()-ROW($B$1)+1)*5-5,0,5))

Hope this helps!
  #5   Report Post  
sandy
 
Posts: n/a
Default

Absolutely wonderful. Thank you for your help Domenic. Sandy

"Domenic" wrote:

In article ,
"sandy" wrote:

I have a column with 10,000 rows of numbers. I need to sum a1:a5, a6:a10,
a11:a15, and so on in groups of five, for all 10,000 rows. How can I do
this? Thanks much.


Try...

B1, copied down:

=SUM(OFFSET($A$1,(ROW()-ROW($B$1)+1)*5-5,0,5))

Hope this helps!



  #6   Report Post  
Bob Phillips
 
Posts: n/a
Default

Sandy,

Try this instead

=SUM(OFFSET(A$1,5*(ROW(A1)-1),0,5,1))

--

HTH

RP
(remove nothere from the email address if mailing direct)


"sandy" wrote in message
...
Can't get it Duke. The first sum is incorrect and the next formula down
starts with the next number copied down to (a2, a3, a4). What am I doing
wrong? Thanks for your help. Sandy

"Duke Carey" wrote:

=SUM(OFFSET(A1,5*ROW(A1)-1,0,5,1))

Put that in the first cell where you want the sums to start and copy it

down
the column.

"sandy" wrote:

I have a column with 10,000 rows of numbers. I need to sum a1:a5,

a6:a10,
a11:a15, and so on in groups of five, for all 10,000 rows. How can I

do
this? Thanks much.



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Insert rows based on specific value bob Excel Worksheet Functions 6 February 29th 08 07:11 PM
Hiding Rows if the linked rows are blank KG Excel Discussion (Misc queries) 9 May 18th 05 02:32 AM
redistribute a column by a groups of rows Bill Davis Excel Worksheet Functions 1 April 29th 05 11:04 PM
Adding Rows to Master Sheet Excel Newbie New Users to Excel 1 December 23rd 04 10:56 PM
repeated transpose from rows to columns with unequal groups kraymond Excel Discussion (Misc queries) 3 December 20th 04 02:39 PM


All times are GMT +1. The time now is 06:34 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"