+ Reply to Thread
Results 1 to 2 of 2

Count unique values in date range

  1. #1
    Registered User
    Join Date
    12-09-2012
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    28

    Count unique values in date range

    I'm trying to count the number of unique values in a date range. My dates are in Column I, and I have a reference number (which is what I'm basing uniqueness on) in column O. For this project, I'm going to have enough data that using the entire column needs to be used.

    To determine the count of unique values, I've been using the following formula:
    Please Login or Register  to view this content.
    To determine the total number of values in a date range, I've been using the following formula:
    Please Login or Register  to view this content.
    Any help would be greatly appreciated!

  2. #2
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,532

    Re: Count unique values in date range

    This proposed solution employs a helper column (K) which may be moved and/or hidden for aesthetic purposes.
    The helper column is populated using: =IF(AND(I2>=L$1,I2<=M$1),J2,"")
    Note that cells L1 and M1 contain the start and end dates of the range.
    The formula for counting unique values is: =SUM(IF(FREQUENCY(K2:K35,K2:K35)>0,1))
    Test by changing the date in L1 to 2/28/2017 and note that the three is counted.
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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. Count the unique values in a range
    By JDG94 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-28-2015, 08:28 PM
  2. Count Number of Unique Values within a Date Range
    By eepok in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-14-2014, 10:28 PM
  3. [SOLVED] Count unique values in a range
    By vij8y in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-11-2013, 04:00 PM
  4. Count Unique values if they fall between a date range
    By Racecarjoe in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-24-2012, 06:41 PM
  5. Count Unique Values within date range
    By onthepitch in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-20-2012, 02:29 PM
  6. count unique values in columns based on date values
    By cclntn in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-29-2010, 06:16 PM
  7. Replies: 6
    Last Post: 03-31-2009, 11:17 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