+ Reply to Thread
Results 1 to 16 of 16

how to extract unique list of names in filtered data

  1. #1
    Forum Contributor
    Join Date
    12-05-2015
    Location
    Albania
    MS-Off Ver
    2013
    Posts
    215

    how to extract unique list of names in filtered data

    Hello Excel Gurus
    I'm learning excel, I'm able to make a unique list of names with FREQUENCY function but Im Not ablle make it with filtered data
    As you can see from this table when i filter Yes or NOT the list of names as to be Unique list
    see on the bottom the expected result
    Bye and Thank you

    A
    B
    C
    1
    name job yes/not
    2
    frank ggggg yes
    3
    mike ffffff not
    4
    frank hhhhh yes
    5
    mike jjjjj yes
    6
    frank kkkk not
    7
    julie lllll yes
    8
    mike aaaaa not
    9
    frank eeeee yes
    10
    luis ttttt not
    11
    12
    13
    14
    15
    16
    17
    expected result Unique list of names filtered data
    18
    Result Yes result NOT
    19
    Frank Mike
    20
    Mike frank
    21
    Julie luis
    Last edited by XLalbania; 12-17-2016 at 07:21 AM.

  2. #2
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,277

    Re: how to extract unique list of names in filtered data

    in your first table, you have enter name in small letters. Where as table 2 only first letter capital. I am right?
    If yes, then, use formula
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    atul


    If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.

    Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved".

  3. #3
    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,374

    Re: how to extract unique list of names in filtered data

    @avk - how does this solve the OP's request? The results required are at the bottom of the table. Your formula is not going to filter those names from the original list.
    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.

  4. #4
    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,374

    Re: how to extract unique list of names in filtered data

    Try this:

    Excel 2016 (Windows) 32 bit
    A
    B
    18
    Result Yes result NOT
    19
    =IFERROR(INDEX($A$2:$A$10, MATCH(0, COUNTIF($A$18:$A18, $A$2:$A$10)+IF($C$2:$C$10<>"yes", 1, 0), 0)), "") =IFERROR(INDEX($A$2:$A$10, MATCH(0, COUNTIF($A$18:$A18, $A$2:$A$10)+IF($C$2:$C$10<>"not", 1, 0), 0)), "")
    Sheet: Sheet2

    ... confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.

    If you want the names capitalised, tweak the formulae like this:

    =IFERROR(INDEX(PROPER($A$2:$A$10), MATCH(0, COUNTIF($A$18:$A18, $A$2:$A$10)+IF($C$2:$C$10<>"yes", 1, 0), 0)), "")
    Last edited by AliGW; 12-17-2016 at 08:28 AM.

  5. #5
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,277

    Re: how to extract unique list of names in filtered data

    Ok noted. for unique list, any co-rrelation between name & job. If yes then explain.

  6. #6
    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,374

    Re: how to extract unique list of names in filtered data

    Quote Originally Posted by avk View Post
    Ok noted. for unique list, any co-rrelation between name & job. If yes then explain.
    Sorry, but have you actually read the opening post? It's the third column that is in play here: the OP seems to want unique list of any name in A that has a match in C. I have provided a solution for that.

  7. #7
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,277

    Re: how to extract unique list of names in filtered data

    Quote Originally Posted by AliGW View Post
    Sorry, but have you actually read the opening post? It's the third column that is in play here: the OP seems to want unique list of any name in A that has a match in C. I have provided a solution for that.
    Dear AliGM, Yes i noted that, but "XLalbania" mentioned first point is : "I'm learning excel" & secondly using with "FREQUENCY", hence i am not able to what result wants Mr. XLalbania. I assuming that, (as per mentioned data) he required small letter to captal first letter. OK thanks for your valuable assistance.

  8. #8
    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,374

    Re: how to extract unique list of names in filtered data

    @avk - see cells A17 to C21 in the table in the opening post for the results that the OP has asked for.

  9. #9
    Forum Contributor
    Join Date
    12-05-2015
    Location
    Albania
    MS-Off Ver
    2013
    Posts
    215

    Re: how to extract unique list of names in filtered data

    Hello AliGW
    You dd a great job but for what i asked, but now i need one step forward, I don't know if is possible
    I need tu have the result only in cell A19:A23, I mean in case i select from the flter Not I need all the unique list of NOT if a select from the filter YES i want to display the result in A19:A23 in case of yes the result to be show always in the same range A19:A23

    in this way

    A
    B
    C
    1
    name job yes/not
    3
    mike ffffff not
    6
    frank kkkk not
    8
    mike aaaaa not
    10
    luis ttttt not
    11
    12
    13
    14
    15
    16
    17
    expected result Unique list of names filtered data
    18
    Result Yes/Not
    19
    frank
    20
    mike
    21
    julie


    Thank You

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

    Re: how to extract unique list of names in filtered data

    Try this...

    Data Range
    A
    B
    C
    1
    name
    job
    yes/not
    2
    frank
    ggggg
    yes
    3
    mike
    ffffff
    not
    4
    frank
    hhhhh
    yes
    5
    mike
    jjjjj
    yes
    6
    frank
    kkkk
    not
    7
    julie
    lllll
    yes
    8
    mike
    aaaaa
    not
    9
    frank
    eeeee
    yes
    10
    luis
    ttttt
    not
    11
    12
    13
    Uniques
    14
    frank
    15
    mike
    16
    julie
    17
    luis
    18
    19
    20


    This array formula** entered in A14:

    =IFERROR(INDEX(A$2:A$10,MATCH(0,IF(SUBTOTAL(3,OFFSET(A$2,ROW(A$2:A$10)-ROW(A$2),0)),COUNTIF(A$13:A13,A$2:A$10)),0)),"")

    ** 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.

    Copy down until you get blanks.

    If you filter on Yes...

    Data Range
    A
    B
    C
    1
    name
    job
    yes/not
    2
    frank
    ggggg
    yes
    4
    frank
    hhhhh
    yes
    5
    mike
    jjjjj
    yes
    7
    julie
    lllll
    yes
    9
    frank
    eeeee
    yes
    11
    12
    13
    Uniques
    14
    frank
    15
    mike
    16
    julie
    17


    If you filter on Not...

    Data Range
    A
    B
    C
    1
    name
    job
    yes/not
    3
    mike
    ffffff
    not
    6
    frank
    kkkk
    not
    8
    mike
    aaaaa
    not
    10
    luis
    ttttt
    not
    11
    12
    13
    Uniques
    14
    mike
    15
    frank
    16
    luis
    17
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  11. #11
    Forum Contributor
    Join Date
    12-05-2015
    Location
    Albania
    MS-Off Ver
    2013
    Posts
    215

    Re: how to extract unique list of names in filtered data

    WooooWW!! Tonyyy!!

    Excellent Job!!! you made my day
    Only one question
    Since I'm learning excel, I know is possible to do yhis with FREQUENCY function but I'm Stuck, can you help me please
    Thank you!!

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

    Re: how to extract unique list of names in filtered data

    I'll get back to you tomorrow sometime.

    Getting ready to watch a hockey game!

    Let's go Pens!

  13. #13
    Forum Contributor
    Join Date
    12-05-2015
    Location
    Albania
    MS-Off Ver
    2013
    Posts
    215

    Re: how to extract unique list of names in filtered data

    Ok thank You
    Now i will try alone, but I'm sure is not easy
    Thanks for now
    Bye

  14. #14
    Forum Contributor
    Join Date
    12-05-2015
    Location
    Albania
    MS-Off Ver
    2013
    Posts
    215

    Re: how to extract unique list of names in filtered data

    I made this formula but not working


    =INDEX($A$2:$A$10,SMALL(IF(FREQUENCY(SUBTOTAL(3,OFFSET(A$2,ROW(A$2:A$10)-ROW(A$2),0)),SUBTOTAL(3,OFFSET(A$2,ROW(A$2:A$10)-ROW(A$2),0))),ROW($A$2:$A$10)-ROW($A$2)+1),ROWS($A$1:A1)))

    Thank you!

  15. #15
    Forum Contributor
    Join Date
    12-05-2015
    Location
    Albania
    MS-Off Ver
    2013
    Posts
    215

    Re: how to extract unique list of names in filtered data

    From your formula I used this pice of formula

    SUBTOTAL(3,OFFSET(A$2,ROW(A$2:A$10)-ROW(A$2),0))

    and i put it inside my FREQUENCY your array for visible rows formula and now is working

    =IFERROR(INDEX($A$2:$A$10,SMALL(IF(FREQUENCY(IF(SUBTOTAL(3,OFFSET($A$2,ROW($A$2:$A$10)-ROW($A$2),0)), IF($A$2:$A$10<>"",MATCH($A$2:$A$10,$A$2:$A$10,0))),ROW($A$2:$A$10)-ROW($A$2)+1),ROW($A$2:$A$10)-ROW($A$2)+1),ROW(H1))),"")

    and Worrkkss!

    Thank you for your help
    you help me a lot T Valko and tahnks also to AliGW
    Thread solved

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

    Re: how to extract unique list of names in filtered data

    Good deal. Thanks for the feedback!

+ 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] Unique names list from data validation column
    By L plates in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-01-2017, 07:08 PM
  2. [SOLVED] How to extract list of unique individuals from the master data set - Reg.
    By bala04msw in forum Excel Formulas & Functions
    Replies: 19
    Last Post: 08-26-2016, 06:40 AM
  3. Replies: 7
    Last Post: 12-23-2015, 07:43 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] Number of unique names in a filtered list
    By IN_FOR_SIN in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-21-2014, 08:55 AM
  6. [SOLVED] Count number of unique names in a filtered list (non array)
    By IN_FOR_SIN in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 01-31-2014, 04:07 AM
  7. Extract Data From a list with unique value
    By sunflowers in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 12-22-2011, 08:47 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