+ Reply to Thread
Results 1 to 3 of 3

Counting by weeks

Hybrid View

  1. #1
    Registered User
    Join Date
    06-16-2020
    Location
    Australia`
    MS-Off Ver
    365
    Posts
    8

    Counting by weeks

    Hi all,

    Table 1 looks similar to this:

    ..............................Saturday 1 Jan | Sunday 2 Jan | Monday 3 Jan | Tuesday 4 Jan | Wednesday 5 Jan | Thursday 6 Jan | Friday 7 Jan
    Row 1............................1......................1......................1......................3.........................4...........................4.....................1
    Row 2............................1......................1......................2......................1.........................7...........................4.....................2
    Row 3............................1......................1......................3......................3.........................2...........................4.....................8


    The columns run for the entire year!
    So i want to break down into weeks in a seperate table.

    For example I could do =Sum(B2:H2) for Week 1 and I2:O2 for Week 2
    However I need to do this for 52 weeks! How can I automate this?


    Thank you!
    Last edited by samwignall; 11-18-2021 at 03:43 AM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    91,041

    Re: Counting by weeks

    Are the dates real dates or text? If the former, you can use the WEEKNUM function in your SUMIFS.

    There are instructions at the top of the page explaining how to attach your sample workbook.

    A good sample workbook has just 10-20 rows of representative that has been desensitised. It also has expected results mocked up, relevant cells highlighted and a few explanatory notes.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,895

    Re: Counting by weeks

    Look at SUMIFS or SUMPRODUCT function

    =SUMIFS(data,date,">=" week1 start,date,"<=" week1 end date")

    Create columns of Start/End dates for each week and reference these in the SUMIFS

    ANd/OR post a w/book : see yellow banner at top of page on how to attach a w/book.

    See sample w/book which use SUMPRODUCT to SUM for all rows in a given week

    =SUMPRODUCT((Sheet1!$B$2:$Q$9)*(Sheet1!$B$1:$Q$1>=Sheet2!$B3)*(Sheet1!$B$1:$Q$1<=Sheet2!$C3))
    Attached Files Attached Files
    Last edited by JohnTopley; 11-18-2021 at 04:46 AM.
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

+ 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. Counting weeks with/without a value
    By radick201 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-18-2013, 08:50 AM
  2. Counting weeks
    By Blue Hornet in forum Excel Formulas & Functions
    Replies: 36
    Last Post: 09-06-2005, 07:05 PM
  3. Counting weeks
    By Rick, United Kingdom in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 06:05 PM
  4. Counting weeks
    By Blue Hornet in forum Excel Formulas & Functions
    Replies: 30
    Last Post: 09-06-2005, 05:05 PM
  5. Counting weeks
    By Rick, United Kingdom in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 PM
  6. Counting weeks
    By Blue Hornet in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 09-06-2005, 06:05 AM
  7. Counting weeks
    By Blue Hornet in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 09-06-2005, 04:05 AM
  8. Counting weeks
    By Rick, United Kingdom in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03: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