+ Reply to Thread
Results 1 to 7 of 7

Counting unique dates in table

  1. #1
    Forum Contributor
    Join Date
    06-20-2016
    Location
    Los Angeles/Thailand
    MS-Off Ver
    2016
    Posts
    250

    Counting unique dates in table

    If I have 100 rows in the table and use =row() formula the end result will be 100 rows. However, what if I have 30 unique dates in the 100 rows, is there a formula that can distinctly count how many dates so far has been entered in the table? I uploaded a file for a better explanation.
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    07-11-2019
    Location
    London, England
    MS-Off Ver
    Excel 365
    Posts
    20

    Re: Counting unique dates in table

    In C2, enter =COUNTA(UNIQUE($A$2:A2)) and drag the formula down. It should produce the same result as in your example in column B.

  3. #3
    Forum Expert
    Join Date
    09-25-2015
    Location
    Milan Italy
    MS-Off Ver
    office 365
    Posts
    1,998

    Re: Counting unique dates in table

    C2=SUM(IF(FREQUENCY(IF(Table1[Date],Table1[Date]),Table1[Date]),1))

    Control+shif+enter
    Attached Files Attached Files

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2505 Win 11
    Posts
    24,754

    Re: Counting unique dates in table

    An alternative option is with 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

  5. #5
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,222

    Re: Counting unique dates in table

    Please try

    =SUMPRODUCT(--(FREQUENCY(A$2:[@Date],A$2:[@Date])>0))
    Attached Files Attached Files

  6. #6
    Forum Contributor
    Join Date
    06-20-2016
    Location
    Los Angeles/Thailand
    MS-Off Ver
    2016
    Posts
    250

    Re: Counting unique dates in table

    Quote Originally Posted by Bo_Ry View Post
    Please try

    =SUMPRODUCT(--(FREQUENCY(A$2:[@Date],A$2:[@Date])>0))
    Thanks this one worked.

  7. #7
    Forum Expert
    Join Date
    12-09-2014
    Location
    Trakai, Lithuania
    MS-Off Ver
    2016
    Posts
    1,418

    Re: Counting unique dates in table

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

+ 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 unique dates with criteria
    By tisko in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-16-2021, 04:41 AM
  2. [SOLVED] Counting Unique dates and names
    By Streaky in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-21-2018, 05:06 AM
  3. Counting Unique Dates for multiple criteria
    By mlhw1966 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-20-2015, 04:44 PM
  4. [SOLVED] counting unique dates
    By guy13 in forum Excel Formulas & Functions
    Replies: 23
    Last Post: 09-22-2014, 10:50 AM
  5. Counting number of unique dates per month in a list of duplicate dates
    By Rackle83 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-22-2013, 10:15 AM
  6. Need Help counting unique values between two dates
    By Lm1164 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-27-2013, 09:46 PM
  7. Replies: 0
    Last Post: 11-16-2011, 12:39 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