+ Reply to Thread
Results 1 to 16 of 16

Count unique dates with registration, month and year criteria

  1. #1
    Registered User
    Join Date
    04-27-2024
    Location
    Singapore
    MS-Off Ver
    365
    Posts
    12

    Red face Count unique dates with registration, month and year criteria

    Hi,

    I need help with the formula to achieve count of unique dates with registration, year and month as criteria.

    Sample data as below.

    1.PNG

    Result required as follows.

    2.PNG

    Attaching the Excel file for referrence.

    Thank you for the great help.
    Attached Files Attached Files

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,947

    Re: Count unique dates with registration, month and year criteria

    Power Query

    Please Login or Register  to view this content.
    Power Query is a free AddIn for Excel 2010 and 2013, and is built-in functionality from Excel 2016 onwards (where it is referred to as "Get & Transform Data").

    It is a powerful yet simple way of getting, changing and using data from a broad variety of sources, creating steps which may be easily repeated and refreshed. I strongly recommend learning how to use Power Query - it's among the most powerful functionalities of Excel.

    - Follow this link to learn how to install Power Query in Excel 2010 / 2013.

    - Follow this link for an introduction to Power Query functionality.

    - Follow this link for a video which demonstrates how to use Power Query code provided.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    04-27-2024
    Location
    Singapore
    MS-Off Ver
    365
    Posts
    12

    Re: Count unique dates with registration, month and year criteria

    Thank you alansidmam.

    However,is it possible to do it with formula only as I am not familiar with Power Query.

    Thank you

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,947

    Re: Count unique dates with registration, month and year criteria

    Maybe, but not my forte. Suggest you be patient and wait for one of our formula gurus. I have provided you with instructions on how to employ PQ.

  5. #5
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    Australia
    MS-Off Ver
    365 V2403 and WPS V2022
    Posts
    3,497

    Re: Count unique dates with registration, month and year criteria

    Pls try this formula

    Cell G2 formula , Drag down and across

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

  6. #6
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,465

    Re: Count unique dates with registration, month and year criteria

    One way:

    Please try in G2 and copy across and down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by HansDouwe; 04-28-2024 at 10:24 PM.

  7. #7
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,465

    Re: Count unique dates with registration, month and year criteria

    The whole table (including the id's in the first column and the header with the months: Please try:
    Please Login or Register  to view this content.
    Attached Files Attached Files

  8. #8
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    Australia
    MS-Off Ver
    365 V2403 and WPS V2022
    Posts
    3,497

    Re: Count unique dates with registration, month and year criteria

    The whole table (including the id's in the first column and the header with the months

    Cell F14 formula

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

  9. #9
    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. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,444

    Re: Count unique dates with registration, month and year criteria

    At the moment, PIVOTBY is only available on the BETA channel, I believe.
    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.

  10. #10
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    Australia
    MS-Off Ver
    365 V2403 and WPS V2022
    Posts
    3,497

    Re: Count unique dates with registration, month and year criteria

    Yes @AliGW

  11. #11
    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. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,444

    Re: Count unique dates with registration, month and year criteria

    So mention this in future, please, until it's on general release. Thanks.

  12. #12
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    Australia
    MS-Off Ver
    365 V2403 and WPS V2022
    Posts
    3,497

    Re: Count unique dates with registration, month and year criteria

    Okay, I understand , I thought all OFFICE 365 owners would automatically upgrade to BETA

  13. #13
    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. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,444

    Re: Count unique dates with registration, month and year criteria

    No - you can never assume anything like that. Some people won't want to be part of a potentially buggy trial phase!

  14. #14
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    Australia
    MS-Off Ver
    365 V2403 and WPS V2022
    Posts
    3,497

    Re: Count unique dates with registration, month and year criteria

    That's right, @AliGW forgot what was said above. It was just me thinking too much

  15. #15
    Registered User
    Join Date
    04-27-2024
    Location
    Singapore
    MS-Off Ver
    365
    Posts
    12

    Re: Count unique dates with registration, month and year criteria

    Thank you everyone for your great assistance

  16. #16
    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. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,444

    Re: Count unique dates with registration, month and year criteria

    Glad to have helped.

    If that takes care of your original question, please choose Thread Tools from the menu link above and mark this thread as SOLVED. You can also access the SOLVED tag by editing the opening post and choosing SOLVED from the drop-down to the left of the title box.

    Also, 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. [SOLVED] How to count number of unique values ONLY in the month/year they first appear
    By LangePier in forum Excel Formulas & Functions
    Replies: 30
    Last Post: 02-04-2024, 09:08 AM
  2. Count days per month per year between 2 dates
    By bojef in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 09-16-2023, 03:22 AM
  3. Count Unique Records based on multiple criteria by month and year.
    By hecgroups in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-19-2022, 03:58 AM
  4. [SOLVED] Extract count of dates with Month and Year criteria
    By Shareez Saleem in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-14-2017, 06:03 AM
  5. Replies: 18
    Last Post: 09-08-2014, 05:06 PM
  6. counting unique values across several criteria and date (month/year)
    By joannelittell in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-30-2013, 06:19 AM
  7. unique occurances per multiple criteria (including month/year)
    By joannelittell in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-09-2013, 04:54 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