+ Reply to Thread
Results 1 to 8 of 8

Extract Unique Values from Filtered List

  1. #1
    Registered User
    Join Date
    05-02-2018
    Location
    Fenton, MI
    MS-Off Ver
    2016
    Posts
    4

    Extract Unique Values from Filtered List

    I'm looking to return a listing of unique values from an auto-filtered list.

    I have a range of customer data (address, phone number, etc...) that I'm sorting by individual county. The list has 67,950 records (rows of data) with countless records falling in the same counties randomly throughout the list (there are a total of 83 counties overall). When I auto-filter the list to exclude counties whose data I don't want to see, the list is still huge (at any given time I may be looking at a couple of dozen counties in a filtered list), so I want to have a quick reference showing what counties are still visible.

    All of my counties are listed in column "I" (I5:I67950).

    This must be a tough one because I can't find a reference to this type of solution ANYWHERE!

    Any ideas?


    Ken

  2. #2
    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. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,779

    Re: Extract Unique Values from Filtered List

    Welcome to the forum.

    Easy with PowerQuery. Can you share a sample workbook?
    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.

  3. #3
    Registered User
    Join Date
    05-02-2018
    Location
    Fenton, MI
    MS-Off Ver
    2016
    Posts
    4

    Re: Extract Unique Values from Filtered List

    Here is a sample workbook.
    Attached Files Attached Files

  4. #4
    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. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,779

    Re: Extract Unique Values from Filtered List

    I used PowerQuery first to filter out the counties I wasn't interested in (I chose Oakland and Macomb), then I removed extraneous columns and duplicates from the resulting list.

    M Code:

    Please Login or Register  to view this content.
    Result:

    Excel 2016 (Windows) 32 bit
    A
    1
    PHY_COUNTY
    2
    SAINT CLAIR
    3
    LAPEER
    Sheet: Filtered Counties
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    05-02-2018
    Location
    Fenton, MI
    MS-Off Ver
    2016
    Posts
    4

    Re: Extract Unique Values from Filtered List

    Thank you.

    But I think I failed to fully explain exactly what I'm after. Let me explain further...

    I want the list of VISIBLE counties from the auto-filtered list to appear on the original tab (either above or below the visible filtered data range) for quick reference so that I can see at a glance what counties' data is displayed. I'm not looking for just a simple listing of visible counties by itself, but a listing of visible counties that updates as the auto-filtered list selection criteria changes (I often add/subtract counties from the filtered list as I'm working). I was attempting to accomplish it with a formula but haven't been able to find a formula that works like SUMPRODUCT, SUBTOTAL, or INDEX. The point it for it to update the summary list as the autofilter criteria is changed.

    Does that help?

    Ken

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

    Re: Extract Unique Values from Filtered List

    UDF will do?
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

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

    Re: Extract Unique Values from Filtered List

    Not sure this is what you want.
    Please try at H1
    =IFERROR(INDEX($H$6:$H$1500,SMALL(IF(FREQUENCY(IF(SUBTOTAL(3,OFFSET($H$6,ROW($H$6:$H$1500)-ROW($H$6),)),MATCH($H$6:$H$1500,$H$6:$H$1500,)),ROW($H$6:$H$1500)-ROW($H$6)),ROW($H$6:$H$1500)-ROW($H$6)),ROW(H1))),"")
    Press Ctrl+Shift+Enter and drag to H4
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    05-02-2018
    Location
    Fenton, MI
    MS-Off Ver
    2016
    Posts
    4

    Re: Extract Unique Values from Filtered List

    Quote Originally Posted by Bo_Ry View Post
    Not sure this is what you want.
    This is EXACTLY what I wanted! Amazing!

    Thank you very kindly!!!!!


    Ken

+ 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] Adapt Fornula to Extract Unique List from Filtered Data Alphabetically
    By AliGW in forum Excel Formulas & Functions
    Replies: 25
    Last Post: 06-10-2018, 06:32 AM
  2. [SOLVED] I need some help with SUM unique values from filtered list.
    By spamogz in forum Excel General
    Replies: 4
    Last Post: 04-02-2017, 12:35 PM
  3. [SOLVED] how to extract unique list of names in filtered data
    By XLalbania in forum Excel General
    Replies: 15
    Last Post: 12-18-2016, 09:30 AM
  4. Extract unique text values from a filtered list
    By ljerromes in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-23-2015, 07:51 PM
  5. [SOLVED] Extract a List of Values Filtered by Criteria
    By mcmahobt in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-16-2014, 09:04 AM
  6. How to count unique values in filtered list?
    By Cayenne in forum Excel Charting & Pivots
    Replies: 14
    Last Post: 10-23-2014, 04:58 PM
  7. Filter for unique values on an already auto-filtered list?
    By dylanemcgregor in forum Excel General
    Replies: 1
    Last Post: 01-11-2010, 07:25 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