Make a list that excludes duplicates

P

Phil Osman

I have a listing that looks like this:

AAA 1
AAA 2
AAA 3
BB 1
BB 2
BB 3
BB 4
C 1
DD 1
DD 2
Etc.....

I want another list to link to this but only pick up the unique text entries
excluding the numbers, so the result should be:
AAA
BB
C
DD
Etc.....

If there have to be spaces in this second list then so be it, but I would
love to find a solution.
 
P

Phil Osman

In addition, the number at the end will always be a single digit number.
Presumably that helps as I imagine the solution will contain a
left(len(a1)-2) or something similar.....
 
J

Jerry W. Lewis

You might try the UNIQUEVALUES function in Laurent Longre's MOREFUNC.XLL
which can be downloaded from
http://xcell05.free.fr/

Highlight a range of the same size as your data and use
UNIQUEVALUES(TRIM(LEFT(data,LEN(data)-1)))
array entered (Ctrl-Shift-Enter)

Jerry
 
P

Phil Osman

No downloads allowed in work sadly......any other way that I could get the
same result ?
 
P

Phil Osman

Thanks Dave. I ended up setting the advanced filter up as a Macro, which
worked fine.
 
Top