+ Reply to Thread
Results 1 to 5 of 5

Count Number of Unique Values within a Date Range

  1. #1
    Registered User
    Join Date
    08-09-2006
    Posts
    3

    Count Number of Unique Values within a Date Range

    Hello all,

    I'm looking for a method to count the number of unique values (ID Number) within a selected date range. I know how to count unique values within a general range (=SUM(IF(FREQUENCY($A:$A,$A:$A)>0,1)), but the additional variable of date range is stumping me something fierce.

    Here's some demo data:


    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Count Number of Unique Values within a Date Range

    e2=
    Please Login or Register  to view this content.
    f2 =
    Please Login or Register  to view this content.
    Then both drag down.

    Then filter on column E on the values 1
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Count Number of Unique Values within a Date Range

    Try something like this...

    F2 = start date
    G2 = end date

    Array entered**:

    =SUM(IF(FREQUENCY(IF(A2:A20>=F2,IF(A2:A20<=G2,C2:C20)),C2:C20),1))

    ** array formulas need to be entered using the key
    combination of CTRL,SHIFT,ENTER (not just ENTER).
    Hold down both the CTRL key and the SHIFT key
    then hit ENTER.

    You should avoid using entire columns as range references in array formulas. Use smaller specific ranges.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  4. #4
    Forum Expert Vikas_Gautam's Avatar
    Join Date
    06-04-2013
    Location
    Ludhiana,Punjab, India
    MS-Off Ver
    Excel 2013
    Posts
    1,850

    Re: Count Number of Unique Values within a Date Range

    Try this...

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


    Press Ctrl + shift + enter to enter the formula..

    Don't forget to click *
    Last edited by Vikas_Gautam; 08-15-2014 at 05:11 AM.

  5. #5
    Forum Expert Vikas_Gautam's Avatar
    Join Date
    06-04-2013
    Location
    Ludhiana,Punjab, India
    MS-Off Ver
    Excel 2013
    Posts
    1,850

    Thumbs up Re: Count Number of Unique Values within a Date Range

    Check the attached file..




    Dont' forget to click *
    Attached Files Attached Files
    Last edited by Vikas_Gautam; 08-15-2014 at 06:02 AM.

+ 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] Count the number of unique values (occurances) in a range.
    By angelopc in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-13-2013, 10:36 AM
  2. 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
  3. Count Unique Values within date range
    By onthepitch in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-20-2012, 02:29 PM
  4. Replies: 12
    Last Post: 07-03-2012, 04:50 PM
  5. [SOLVED] Count number of Unique values
    By Alan in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-06-2005, 05: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