Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Phil Osman
 
Posts: n/a
Default Make a list that excludes duplicates

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.

  #2   Report Post  
Phil Osman
 
Posts: n/a
Default

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

--
http://www.redbrick.dcu.ie/~pele


"Phil Osman" wrote:

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.

  #3   Report Post  
Jerry W. Lewis
 
Posts: n/a
Default

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


Phil Osman wrote:

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.


  #4   Report Post  
Phil Osman
 
Posts: n/a
Default

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

--
http://www.redbrick.dcu.ie/~pele


"Jerry W. Lewis" wrote:

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


Phil Osman wrote:

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.



  #5   Report Post  
Dave Peterson
 
Posts: n/a
Default

You could use a helper column to extract the first portion of the cell (assuming
that AAA 1 is in one cell).

=LEFT(A1,SEARCH(" ",A1&" ")-1)
(and copy down)

Then you could use Data|Filter|Advanced filter to get that unique list.

Debra Dalgleish has detailed instructions at:
http://www.contextures.com/xladvfilter01.html#FilterUR

Phil Osman wrote:

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.


--

Dave Peterson


  #6   Report Post  
Phil Osman
 
Posts: n/a
Default

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

--
http://www.redbrick.dcu.ie/~pele


"Dave Peterson" wrote:

You could use a helper column to extract the first portion of the cell (assuming
that AAA 1 is in one cell).

=LEFT(A1,SEARCH(" ",A1&" ")-1)
(and copy down)

Then you could use Data|Filter|Advanced filter to get that unique list.

Debra Dalgleish has detailed instructions at:
http://www.contextures.com/xladvfilter01.html#FilterUR

Phil Osman wrote:

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.


--

Dave Peterson

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Data Validation - Drop-down list - make arrow visible at all times supergoat Excel Discussion (Misc queries) 3 April 19th 05 01:01 PM
Transfer Items to a list with no duplicates [email protected] Excel Worksheet Functions 1 March 30th 05 10:30 PM
Refresh a Validation List? jhollin1138 Excel Discussion (Misc queries) 3 February 17th 05 05:48 PM
How do I find duplicates in a list JimNC Excel Discussion (Misc queries) 1 February 6th 05 08:40 PM
Creating a list from an existing list. Jad Excel Worksheet Functions 1 October 29th 04 06:00 AM


All times are GMT +1. The time now is 08:34 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"