Results 1 to 26 of 26

Adapt Fornula to Extract Unique List from Filtered Data Alphabetically

Threaded View

  1. #1
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,369

    Adapt Fornula to Extract Unique List from Filtered Data Alphabetically

    I have two formulae, both gleaned at different times from the helpful crowd here. What I am trying to do is get the alphabetised result that the first (array) formula offers, but adapted to work on filtered data like the second (non-array) formula that I am currently using.

    Formula 1 (in D936):

    =IFERROR(INDEX(SEF_Data_2018[TchGrp],MATCH(,COUNTIF(SEF_Data_2018[TchGrp],"<"&SEF_Data_2018[TchGrp])+9^9*(SEF_Data_2018[TchGrp]="")-SUM(COUNTIF(SEF_Data_2018[TchGrp],D$935:D935)),)),"")

    Formula 2 (in C936):

    =IFERROR(INDEX(SEF_Data_2018[TchGrp],MATCH(1,INDEX(SUBTOTAL(3,OFFSET(SEF_Data_2018[[#Headers],[TchGrp]],ROW(SEF_Data_2018[School ID])-3,))*(0=COUNTIF($C$935:C935,SEF_Data_2018[TchGrp])),),)),"")

    The second formula will produce an alphabetical list if the data is sorted on the teaching group (TchGrp) column, but the data will not always be sorted that way, nor can it always be.

    What I would like is a list of unique values that are visible in the table when the list is filtered that will always present itself alphabetically. Teaching group codes are always text (essentially a mixture of numbers and text).

    I have attached a sample file - you'll need to scroll down to row 935 to see the formulae. The slicer is top right. I would like a formula, not VBA, PQ or advanced filters in this case.

    Thank you to anyone who can see how to combine the functionality of the two formulae I have already!
    Attached Files Attached Files
    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. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Drop down dependent on previous filtered list - NOT SORTED ALPHABETICALLY
    By K Cooper in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-25-2018, 06:38 PM
  2. [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
  3. [SOLVED] Formula to get unique and alphabetically sorted list after matching a criteria
    By Saranya A in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-20-2016, 06:50 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] Dynamic Formula for Getting Unique Items from a list and sort them alphabetically
    By tuckertheguy in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 09-18-2015, 03:57 AM
  6. [SOLVED] Formula to extract unique values from two excel tabs and sort alphabetically
    By rshukla in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-06-2013, 01:48 PM
  7. [SOLVED] Unique distinct alphabetically sorted list
    By atlant15 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-06-2013, 10:03 AM

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