+ Reply to Thread
Results 1 to 4 of 4

Summing blocks of 4 week data values

  1. #1
    Registered User
    Join Date
    01-13-2010
    Location
    Oxford
    MS-Off Ver
    Excel 2010
    Posts
    57

    Summing blocks of 4 week data values

    Hi Everyone

    I have a set of rows which have week starting dates and underneath each date is a value

    Every 4 weeks I want a sum of what those data values add up to

    Is it possible to do this? I did think of using the week number as a unique identifier and a SUMIF formula but I have data that span across several years so naturally the week numbers reset

    Manually this is easy enough to do however I receive new data every week so the idea would be that Excel looks at the week starting date and then calculates the next 4 weeks so that I can paste the new data in and it automatically sums up

    I've attached a small example with more info as to what I'm trying to achieve

    thanks for any help in advance

    Dan_B
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Summing blocks of 4 week data values

    With the beginning date in B7, In C7 copied right

    = B7 +28
    In B8 copied across and down
    =SUMIFS(2:2,$1:$1,">="&B$7,$1:$1, "<="& B$7+28)
    Is that what you are looking for?
    Attached Files Attached Files
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    01-13-2010
    Location
    Oxford
    MS-Off Ver
    Excel 2010
    Posts
    57

    Re: Summing blocks of 4 week data values

    Hi ChemistB

    Thanks for the reply but it's not quite what I'm looking for as in my example the first 4 weeks starting from 24/02 to 17/03 should add up to 18 and not 38 as per your example.. Perhaps my explanation was not good

    I need a sum for

    24/02 - 17/03 (4weeks) = 18
    24/03 - 21/04 (4weeks) = 54

    So first week values + the next 3 weeks values (4WKS) in total

    Hope that makes more sense

    Thanks

    Dan_B

  4. #4
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Summing blocks of 4 week data values

    Sorry, remove the third = sign. Formula in B8 should be

    =SUMIFS(2:2,$1:$1,">="&B$7,$1:$1, "<"& B$7+28)
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Summing data based on the week and today
    By HC1994 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 02-18-2014, 02:57 PM
  2. [SOLVED] Summing Data by Week Ending and Category
    By cpalmer72 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 10-12-2013, 11:13 PM
  3. Summing Data by Week Ending and Category
    By cpalmer72 in forum Excel General
    Replies: 1
    Last Post: 10-03-2013, 02:30 PM
  4. Summing blocks of 96 numbers
    By bortap in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-07-2013, 11:16 AM
  5. cell references summing blocks of 7 cells
    By ruperupe in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-07-2013, 10:23 AM
  6. Using macros to identify blocks of data and summarise those blocks
    By gophbeav in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-05-2012, 04:35 AM
  7. Summing or avg moving ranges based on week and day???
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-28-2006, 04:55 PM
  8. Summing Unique data values
    By SydnTex in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-21-2006, 10:05 AM

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