+ Reply to Thread
Results 1 to 6 of 6

Counting how many dates in a range fall into this week and last week

  1. #1
    Registered User
    Join Date
    01-08-2013
    Location
    Nottingham, England
    MS-Off Ver
    Excel 2007
    Posts
    3

    Post Counting how many dates in a range fall into this week and last week

    I have a spreadsheet column that contains a series of dates and times and would like to know how I can count those that relate to this week and those that relate to last week.

    The dates in the column A are:
    31/12/2012
    01/01/2013
    07/01/2013
    08/01/2013
    06/01/2013
    05/01/2013
    07/01/2013

    and the formula I have tried is below which returns a value of 0:
    =COUNTIF(A:A, WEEKNUM(TODAY()))

    todays date is 08/01/2013

    also I have no idea how I can achieve the Last Week count.

    can anyone help me please

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

    Re: Counting how many dates in a range fall into this week and last week

    Does your week number start on a Sunday or a Monday? i.e. would 6th Jan be counted in this week or last week?

    Pete

  3. #3
    Registered User
    Join Date
    01-08-2013
    Location
    Nottingham, England
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Counting how many dates in a range fall into this week and last week

    Hi Pete - my week starts on a Sunday

    regards
    Aneel

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

    Re: Counting how many dates in a range fall into this week and last week

    Okay, this will give you the count for the current week:

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


    assuming your dates are in column A, and this will give you the count for the previous week:

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


    Hope this helps.

    Pete

  5. #5
    Registered User
    Join Date
    01-08-2013
    Location
    Nottingham, England
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Counting how many dates in a range fall into this week and last week

    Spot on thanks Pete

    i've been at this most of this morning and it all looks so simple now I see the solution :-)

  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,720

    Re: Counting how many dates in a range fall into this week and last week

    Glad to be of help. Please mark the thread as Solved if you consider it to be so. Also, you can show your appreciation to a poster by clicking on the "star" icon in the bottom left corner of any post that you have found to be helpful (not only in this thread).

    Pete

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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