+ Reply to Thread
Results 1 to 4 of 4

Count Unique Filtered Records

  1. #1
    Registered User
    Join Date
    12-27-2016
    Location
    Ontario, Canada
    MS-Off Ver
    2010
    Posts
    34

    Count Unique Filtered Records

    There are many examples of how to count filtered records, but how can I count unique filtered records. Meaning, I have set a filter on a different column, and I would like to count the unique records in column 'C'. Suppose I set a filter on some other column like column 'X' and the filtered data in column 'C' would look like:

    A
    A
    A
    B
    C
    C
    C
    C
    D
    D

    So the number of unique records should be 4 for column 'C'.

  2. #2
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: Count Unique Filtered Records

    Hi Bob - Use the SUBTOTAL function in a helper column to identify visible rows (column D in the example workbook):
    Please Login or Register  to view this content.
    Then use the following ARRAY FORMULA* to count unique visible labels:
    Please Login or Register  to view this content.
    *Always press CTRL+SHIFT+ENTER to confirm entry after pasting or editing an ARRAY FORMULA in the Formula Bar.
    When copying the formula to other cells, make sure the copied cell is not part of the Paste Area.
    Attached Files Attached Files
    Last edited by leelnich; 01-21-2018 at 01:12 AM.
    Clicking the Add Reputation star below helpful posts is a great way to show your appreciation.
    Please mark your threads as SOLVED upon conclusion (Thread Tools above Post # 1). - Lee

  3. #3
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,577

    Re: Count Unique Filtered Records

    ARRAY Formula to get total count of unique records in filtered data without actually not filtering data.
    Data A2:C12
    unique count of records with A column="aa' and B column="bb" is
    Please Login or Register  to view this content.
    ARRAY formula is used

    To enter ARRAY formula
    Paste the formula
    Press F2
    Press Ctrl+Shift+Enter keys together.
    formula will be covered with{} brackets by excel.
    Attached Files Attached Files
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  4. #4
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: Count Unique Filtered Records

    Bob - thank you for the rep! If "complete", please mark your thread as SOLVED (Thread Tools, up top). Regards - Lee

+ 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 of records based on the filtered data
    By Kamalakar M in forum Excel General
    Replies: 1
    Last Post: 01-19-2016, 04:53 AM
  2. Excel 2007 - count unique records in Filtered Table
    By redbrad0 in forum Excel General
    Replies: 0
    Last Post: 05-26-2010, 08:20 PM
  3. Count unique records in a filtered range
    By jiminic in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 01-24-2009, 02:44 AM
  4. Count certain records in filtered data
    By Steve Simons in forum Excel General
    Replies: 4
    Last Post: 08-22-2006, 05:05 AM
  5. [SOLVED] REPOST: Count certain records in filtered data
    By Steve Simons in forum Excel General
    Replies: 5
    Last Post: 08-19-2006, 07:55 AM
  6. [SOLVED] How can the count of filtered records always display?
    By Robert Bushman in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-02-2005, 06:20 PM
  7. How can the count of filtered records always display?
    By Robert Bushman in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-02-2005, 06:17 PM

Tags for this Thread

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