+ Reply to Thread
Results 1 to 4 of 4

sum column values in groups of 12 cells

  1. #1
    Registered User
    Join Date
    02-16-2013
    Location
    Adelaide, Australia
    MS-Off Ver
    Excel 2007
    Posts
    2

    sum column values in groups of 12 cells

    Hello.

    I have data in one very long column (approx. 14000 cells).

    I would like to sum the values in this column in groups of 12 cells (i.e. sum cells 1-12, sum cells 13-24, etc).

    I've tried the SUMIF function but the auto-complete feature when dragging the formula down the column doesn't reference consecutive groups of 12 cells.

    Any help would be appreciated.

    Thanks.

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: sum column values in groups of 12 cells

    One way...

    With your data starting in A1, put this in B1 and copy down...

    =SUM(OFFSET(A$1,(ROW()-ROW($A$1))*12,0,12,1))
    HTH
    Regards, Jeff

  3. #3
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: sum column values in groups of 12 cells

    =SUM(OFFSET($A$1,ROWS($A$1:A1)*12-12,,12))
    or
    =SUM(INDEX(A:A,ROWS($A$1:A1)*12-11):INDEX(A:A,ROWS($A$1:A1)*12))
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  4. #4
    Registered User
    Join Date
    02-16-2013
    Location
    Adelaide, Australia
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: sum column values in groups of 12 cells

    Thanks very much.

    This solution works perfectly.

+ 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