+ Reply to Thread
Results 1 to 7 of 7

WEEKNUM and COUNTIF

  1. #1
    Registered User
    Join Date
    03-29-2024
    Location
    HCM
    MS-Off Ver
    MS 365
    Posts
    2

    WEEKNUM and COUNTIF

    Hi everyone,

    I have a set of dates and want to count how many instances there are in the specified week number (D2). There are many ways I've tried, but they require a helper column. Is there any workaround for that?

    Much appreciated! Thanks for your attention.

    Screenshot 2024-03-29 124536.png

    Book6.xlsx

  2. #2
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,005

    Re: WEEKNUM and COUNTIF

    one way,

    Please Login or Register  to view this content.

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,891

    Re: WEEKNUM and COUNTIF

    Welcome to the forum.

    Try this:

    =LET(a,A2:A11,w,BYROW(a,LAMBDA(r,WEEKNUM(r))),SUMPRODUCT((w<>"")*(w=D2)))
    Attached Files Attached Files
    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.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  4. #4
    Registered User
    Join Date
    03-29-2024
    Location
    HCM
    MS-Off Ver
    MS 365
    Posts
    2

    Re: WEEKNUM and COUNTIF

    Thank windknife and AliGW for the replies, works perfectly ^^

  5. #5
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,005

    Re: WEEKNUM and COUNTIF

    You are welcome.

  6. #6
    Forum Expert
    Join Date
    10-19-2021
    Location
    Brazil
    MS-Off Ver
    Office 365 V2401 w/ Win10 Home 64 Bit
    Posts
    2,014

    Re: WEEKNUM and COUNTIF

    Another proposal.

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

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,891

    Re: WEEKNUM and COUNTIF

    Glad to have helped.

    If you have not already done so, remember that you can reward anyone who offered you help towards a solution for your issue by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of each of those who offered help.

+ 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. Replies: 4
    Last Post: 11-25-2015, 06:44 PM
  2. Countif and Weeknum(Now())
    By jtmoore in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-01-2014, 09:00 AM
  3. [SOLVED] Using Weeknum with countif or sumproduct
    By esaban in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-24-2014, 01:26 PM
  4. Countif, Sumproduct and WeekNum
    By theproblem in forum Excel General
    Replies: 6
    Last Post: 08-04-2009, 04:38 PM
  5. Weeknum
    By Mike D. in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-14-2006, 04:50 PM
  6. [SOLVED] Weeknum
    By MickeW in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 01:05 AM
  7. Weeknum
    By Gordon in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-27-2005, 04:06 PM

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