ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Summing every 7 cells consecutively (https://www.excelbanter.com/excel-worksheet-functions/190602-summing-every-7-cells-consecutively.html)

[email protected]

Summing every 7 cells consecutively
 
If I have number in every cell A1:A14 and would like to have cell B1
show the sum of the first seven rows (A1:A7), and B2 show the sum of
the next seven (A8:A14), how do I do this automatically? I.E. I have
thousands of rows of data, and would like a formula that I can drag
down, which will sum every 7 rows.

Thanks!

Jim Cone[_2_]

Summing every 7 cells consecutively
 
=SUM(OFFSET($A$1,(ROW()-1)*7,0,7,1))
--
Jim Cone
Portland, Oregon USA
http://www.realezsites.com/bus/primitivesoftware
(Excel Add-ins / Excel Programming)




wrote in message
If I have number in every cell A1:A14 and would like to have cell B1
show the sum of the first seven rows (A1:A7), and B2 show the sum of
the next seven (A8:A14), how do I do this automatically? I.E. I have
thousands of rows of data, and would like a formula that I can drag
down, which will sum every 7 rows.
Thanks!

[email protected]

Summing every 7 cells consecutively
 
On Jun 9, 10:29*pm, "Jim Cone" wrote:
=SUM(OFFSET($A$1,(ROW()-1)*7,0,7,1))
--
Jim Cone
Portland, Oregon *USAhttp://www.realezsites.com/bus/primitivesoftware
(Excel Add-ins / Excel Programming)


wrote in message
If I have number in every cell A1:A14 and would like to have cell B1
show the sum of the first seven rows (A1:A7), and B2 show the sum of
the next seven (A8:A14), how do I do this automatically? *I.E. *I have
thousands of rows of data, and would like a formula that I can drag
down, which will sum every 7 rows.
Thanks!


Thanks for your help!

Gord Dibben

Summing every 7 cells consecutively
 
=SUM(INDEX(A:A,ROW(A1)*7-6):INDEX(A:A,ROW(A1)*7))


Gord Dibben MS Excel MVP

On Mon, 9 Jun 2008 19:54:25 -0700 (PDT), wrote:

If I have number in every cell A1:A14 and would like to have cell B1
show the sum of the first seven rows (A1:A7), and B2 show the sum of
the next seven (A8:A14), how do I do this automatically? I.E. I have
thousands of rows of data, and would like a formula that I can drag
down, which will sum every 7 rows.

Thanks!




All times are GMT +1. The time now is 04:20 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com