ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   how to sum groups of 7 cells (https://www.excelbanter.com/excel-discussion-misc-queries/200868-how-sum-groups-7-cells.html)

Dermot

how to sum groups of 7 cells
 
If I have cells B4 to B250 filled with numbers and I want to sum every seven
cells (B4:B10, B11:B17, etc...). How can I do it such that in I4 is the sum
of the 1st seven, I5 the sum of the second 7, and so on.
I know I can do it manually but I have so many to do that I really need an
automated way of doing it.
Thank you in advance!

David Biddulph[_2_]

how to sum groups of 7 cells
 
=SUM(OFFSET(B$4,(ROW(I4)-ROW(I$4))*7,0,7)) and copy down.
--
David Biddulph

"Dermot" wrote in message
...
If I have cells B4 to B250 filled with numbers and I want to sum every
seven
cells (B4:B10, B11:B17, etc...). How can I do it such that in I4 is the
sum
of the 1st seven, I5 the sum of the second 7, and so on.
I know I can do it manually but I have so many to do that I really need an
automated way of doing it.
Thank you in advance!




T. Valko

how to sum groups of 7 cells
 
Enter this formula in I4 and copy down as needed:

=SUM(OFFSET(B$4,(ROWS(I$4:I4)-1)*7,,7))

--
Biff
Microsoft Excel MVP


"Dermot" wrote in message
...
If I have cells B4 to B250 filled with numbers and I want to sum every
seven
cells (B4:B10, B11:B17, etc...). How can I do it such that in I4 is the
sum
of the 1st seven, I5 the sum of the second 7, and so on.
I know I can do it manually but I have so many to do that I really need an
automated way of doing it.
Thank you in advance!




Dermot

how to sum groups of 7 cells
 
Thank you!

What is the difference between the Offset Function and the Index Function?


"Roger Govier" wrote:

Hi Dermot

In I4 enter
=SUM(INDEX(B:B,4+7*(ROW(A1)-1)):INDEX(B:B,10+7*(ROW(A1)-1)))
and copy down as far as required

--
Regards
Roger Govier

"Dermot" wrote in message
...
If I have cells B4 to B250 filled with numbers and I want to sum every
seven
cells (B4:B10, B11:B17, etc...). How can I do it such that in I4 is the
sum
of the 1st seven, I5 the sum of the second 7, and so on.
I know I can do it manually but I have so many to do that I really need an
automated way of doing it.
Thank you in advance!



Max

how to sum groups of 7 cells
 
What is the difference between the Offset Function and the Index Function?
Offset is volatile while Index is not
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:17,700 Files:359 Subscribers:55
xdemechanik
---



All times are GMT +1. The time now is 10:07 PM.

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