+ Reply to Thread
Results 1 to 5 of 5

Help to SUM 5 rows and then SUM the next 5 rows and so on

Hybrid View

  1. #1
    Registered User
    Join Date
    07-01-2010
    Location
    London
    MS-Off Ver
    Excel 2013
    Posts
    61

    Help to SUM 5 rows and then SUM the next 5 rows and so on

    Hi all, Probably a simple answer but I cannot fathom it and would really appreciate some help.

    I have a list of dates in column A, in column B I have sales figures per day. In column C, I want to put the total sales per week. Could someone help me with a formula so that I can drag the first cell down until all weeks are completed?

    Many thanks
    Last edited by sav1979; 04-14-2011 at 03:00 AM.

  2. #2
    Forum Expert Colin Legg's Avatar
    Join Date
    03-30-2008
    Location
    UK
    MS-Off Ver
    365
    Posts
    1,256

    Re: Help to SUM 5 rows and then SUM the next 5 rows and so on

    Hi,

    A nice and simple way to do this would be to use a pivot table. Set the dates as the row labels and then right click on them > Group > Days

    You can choose the starting day and group them by 7 days.
    Attached Files Attached Files
    Hope that helps,

    Colin

    RAD Excel Blog

  3. #3
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Help to SUM 5 rows and then SUM the next 5 rows and so on

    Without seeing a sample - here is a generic suggestion

    In cell C5 put this: =SUM(B1:B5)

    Now select the range C1:C5

    Drag that range down - cell C10 will now have formula: =SUM(B6:B10),
    Cell C15 will have =SUM(B1:B16)
    etc

  4. #4
    Registered User
    Join Date
    05-28-2009
    Location
    Springfield, Missouri, USA
    MS-Off Ver
    Excel 2007
    Posts
    33

    Re: Help to SUM 5 rows and then SUM the next 5 rows and so on

    I came up with a formula that works, but ONLY with a helper column. I put the formula

    =WEEKNUM(A2,1) in C2

    and the formula

    =SUMIF(C:C,WEEKNUM(A2,1),B:B) in cell D2.

    You could always hide column C...

  5. #5
    Registered User
    Join Date
    07-01-2010
    Location
    London
    MS-Off Ver
    Excel 2013
    Posts
    61

    Re: Help to SUM 5 rows and then SUM the next 5 rows and so on

    Thanks guys. Excellent input. Much appreciated. Will mark as solved.

+ 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