+ Reply to Thread
Results 1 to 9 of 9

Continuing the SUMMATION for a x- number of cells

  1. #1
    Registered User
    Join Date
    04-09-2013
    Location
    Singapore
    MS-Off Ver
    Microsoft Office Pro Plus or Excel 2007
    Posts
    76

    Continuing the SUMMATION for a x- number of cells

    Using Excel 2007

    Column A: I have 90 continuous rows filled with numbers

    Column B:

    Row 1 = SUM (A1:A30)

    Row 2 = SUM (A31: A60)

    Row 3 = SUM (A61:A90)

    In short, I want to find the sum of the first 30 rows, next 30 rows and so forth.

    Since in reality I have many more rows than 90 rows, I will like a way that allow me to pull and drag down Colimn B instead of entering the syntax for each cell.

    Thank you.

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,453

    Re: Continuing the SUMMATION for a x- number of cells

    Please Login or Register  to view this content.

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,812

    Re: Continuing the SUMMATION for a x- number of cells

    Put this in B1:

    =SUM(INDEX(A:A,(ROWS($1:1)-1)*30+1):INDEX(A:A,ROWS($1:1)*30))

    then copy down.

    Hope this helps.

    Pete

  4. #4
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Continuing the SUMMATION for a x- number of cells

    HI Apple1,

    welcome to the forum.

    Try using below formula:-

    Formula: copy to clipboard
    Please Login or Register  to view this content.



    see attached:- sum of 30cells.xlsx


    Regards,
    DILIPandey
    <click on below * if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

  5. #5
    Registered User
    Join Date
    04-09-2013
    Location
    Singapore
    MS-Off Ver
    Microsoft Office Pro Plus or Excel 2007
    Posts
    76

    Re: Continuing the SUMMATION for a x- number of cells

    Thank you for the reply. But if I wish to vary the formula

    For eg, if

    Column D: I have 90 continuous rows filled with numbers

    Column J:

    Row 12 = SUM (D12:D41)

    Row 13 = SUM (D13: D42)

    and so forth

    Then how should I change the syntax for the above given formulas.

    Thank you

  6. #6
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,812

    Re: Continuing the SUMMATION for a x- number of cells

    That isn't the same problem as you outlined originally. If you put that formula in J12, i.e.:

    =SUM(D12:D41)

    then copy it down then you will have what you describe in the next cell.

    Maybe I'm missing something.

    Pete

  7. #7
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Continuing the SUMMATION for a x- number of cells

    I would suggest you to look into excel in-built help for Offset function and then you'll easily make the changes in the formula as per your requirements.

    Alternatively, you can also search internet for video tutorials on offset

    Regards,
    DILIPandey
    <click on below * if this helps>

  8. #8
    Registered User
    Join Date
    04-09-2013
    Location
    Singapore
    MS-Off Ver
    Microsoft Office Pro Plus or Excel 2007
    Posts
    76

    Re: Continuing the SUMMATION for a x- number of cells

    Sorry I made a typing error, it should be

    Row 12 = SUM (D12:D41)

    Row 13 = SUM (D42: D71)

    and the next 30 rows and so on.

    Thank you

  9. #9
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,812

    Re: Continuing the SUMMATION for a x- number of cells

    Okay, so you still have a span of 30 cells, but you want the first one to start with row 12, then 42, then 72, and so on, and it is column D rather than column A that you want to sum. In that case you can change my formula (in J12) to:

    =SUM(INDEX(D:D,(ROWS($1:1)-1)*30+12):INDEX(D:D,ROWS($1:1)*30+11))

    Then copy down.

    Hope this helps.

    Pete

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1