Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
news.zen.co.uk
 
Posts: n/a
Default Returning one text value in a long list?

I have a long list of names and would like excel to automatically return
just one of each name. For example, a list of 500 names, 10 different names
appearing 50 times each. How could I get excel just to list those ten names?


  #2   Report Post  
Max
 
Posts: n/a
Default Returning one text value in a long list?

One way to extract a "uniques" list is to use Advanced Filter

Assume the names are all in col A, in A2 down
Type a col label in A1 (if required)
Select col A
Click Data Filter Advanced Filter
[Click OK to the Excel prompt to use the first row as labels]

In the Advanced Filter dialog box:
----------------------------------------
Check "Copy to another location"
Ensure that the selected range correctly appears in the "List range:" box
Put for "Copy to:" : B1 (say)
Check "Unique records only"
Click OK

The unique list of names in col A will be extracted in col B
--
Rgds
Max
xl 97
---
Singapore, GMT+8
xdemechanik
http://savefile.com/projects/236895
--
"news.zen.co.uk" wrote in message
...
I have a long list of names and would like excel to automatically return
just one of each name. For example, a list of 500 names, 10 different

names
appearing 50 times each. How could I get excel just to list those ten

names?




  #3   Report Post  
Max
 
Posts: n/a
Default Returning one text value in a long list?

--- Steven Lancaster wrote:
Cheers Max.
I wonder if you could help me further?
What I am trying to do exactly, is to produce a unique list of 'JobNumbers'
for a person's name. For example in column A I have a long list of
'JobNumbers' and in column B a corresponding list of peoples names. Is it
possible for me to get excel to produce a 'uniques' list of the 'JobNumbers'
by looking at a person's name in a different cell? So I would want excel to
look at, say, D1(name) then match that name to data in column B to produce a
'uniques' list in column C from the data in column A?

Here's a quick sample:
http://cjoint.com/?ldejZjGyiv
StevenLanc_wksht.xls

With jobnumbers in col A, names in col B, from row1 down

Put in C1:
=IF(B1="","",IF(COUNTIF($B$1:B1,B1)1,"",ROW()))

Put in D1:
=IF(ISERROR(SMALL(C:C,ROW())),"",INDEX(B:B,MATCH(S MALL(C:C,ROW()),C:C,0)))

Put in E1:
=IF(ISERROR(SMALL(C:C,ROW())),"",INDEX(A:A,MATCH(S MALL(C:C,ROW()),C:C,0)))

Select C1:D1, copy down to say, E100, to cover the max expected data in cols
A & B

The list of unique names will be extracted in col D, and the jobnumber
corresponding to the 1st instance of the name (i.e. uniques = 1st instances)
will be returned in col E
--
Rgds
Max
xl 97
---
Singapore, GMT+8
xdemechanik
http://savefile.com/projects/236895
--


  #4   Report Post  
Max
 
Posts: n/a
Default Returning one text value in a long list?

New link to sample:
http://cjoint.com/?ldeGXOfWVd
StevenLanc_wksht.xls

(comments in D1 & E1 corrected)
--
Rgds
Max
xl 97
---
Singapore, GMT+8
xdemechanik
http://savefile.com/projects/236895
--


  #5   Report Post  
news.zen.co.uk
 
Posts: n/a
Default Returning one text value in a long list?

Fantastic! Thanks again Max, that's really saved me masses of time.
"Max" wrote in message
...
New link to sample:
http://cjoint.com/?ldeGXOfWVd
StevenLanc_wksht.xls

(comments in D1 & E1 corrected)
--
Rgds
Max
xl 97
---
Singapore, GMT+8
xdemechanik
http://savefile.com/projects/236895
--






  #6   Report Post  
Max
 
Posts: n/a
Default Returning one text value in a long list?

You're welcome, Steven !
--
Rgds
Max
xl 97
---
Singapore, GMT+8
xdemechanik
http://savefile.com/projects/236895
--
"news.zen.co.uk" wrote in message
...
Fantastic! Thanks again Max, that's really saved me masses of time.



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
why won't vlookup work in a long list pkeegs Excel Worksheet Functions 9 August 2nd 05 02:28 PM
data validation list drop down text format too small Bruce Edwards Excel Worksheet Functions 3 May 22nd 05 07:28 PM
advanced filter - can't match a long text cell simpsons_rule Excel Discussion (Misc queries) 7 May 14th 05 11:00 PM
Filter long Text strings Cimorene Excel Worksheet Functions 0 December 1st 04 04:01 AM
Counting Repeated text or duplicates in a list Repeatdude Excel Discussion (Misc queries) 5 November 26th 04 07:10 PM


All times are GMT +1. The time now is 11:40 PM.

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"