Results 1 to 3 of 3
  1. #1
    2 Star Lounger
    Join Date
    Mar 2003
    Posts
    174
    Thanks
    0
    Thanked 0 Times in 0 Posts

    List Unique Names in A Column (Excel 2000)

    Is there anyway to list, automatically, the unique Strings in a second column ? In other words, if A1:A10 contains a,b,c,d,d,d,e,e,f,f,, is there a way to list in B1:B6 a,b,c,d,e,f ? I understand you can use filter, but filter does not provide automatic calculation. Is a a dynamic way to do the above without filter or VBA, just using formulas ?

  2. #2
    WS Lounge VIP sdckapr's Avatar
    Join Date
    Jul 2002
    Location
    Pittsburgh, Pennsylvania, USA
    Posts
    11,225
    Thanks
    14
    Thanked 342 Times in 335 Posts

    Re: List Unique Names in A Column (Excel 2000)

    Enter this ARRAY formula into (eg) B1:
    =INDEX(A1:A10,SMALL(IF((ROW(INDIRECT("1:10"))=MATC H(A1:A10,A1:A10,0)),ROW(INDIRECT("1:10")),""),ROW( INDIRECT("1:10"))))

    Select B1:b10, hit F2, ctrl-shift-enter will then fill in B1:b10 with the unique list (where they do not fill in you will get #Num error).

    The list is live. If you change A1:a10 you must also change the "1:10" to reflect the number of rows in the set.

    If you name A1:A10 to LIST you can use the array:
    =INDEX(List,SMALL(IF((ROW(INDIRECT("1:"&ROWS(List) ))=MATCH(List,List,0)),ROW(INDIRECT("1:"&ROWS(List ))),""),ROW(INDIRECT("1:"&ROWS(List)))))

    And this will keep track of the number of rows required. You still must expand the length of the array to cover all the unique items.

    Steve

  3. #3
    2 Star Lounger
    Join Date
    Mar 2003
    Posts
    174
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: List Unique Names in A Column (Excel 2000)

    Steve,
    This is great. Many thanks !

    TQ

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •