Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / April 2007

Tip: Looking for answers? Try searching our database.

How can I get a unique list of a column?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Yabi - 10 Apr 2007 08:36 GMT
I have a column which is the name of cities. There are about 5 cities
which is repeated in 50 records (rows). I want to get the name of this
5 cities in a separate column. How can I do this?

TIA
Rasoul Khoshravan
Bob Phillips - 10 Apr 2007 08:52 GMT
Use Data>Filter>Advanced Filter. There is an option to filter unique
records.

Signature

HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

>I have a column which is the name of cities. There are about 5 cities
> which is repeated in 50 records (rows). I want to get the name of this
> 5 cities in a separate column. How can I do this?
>
> TIA
> Rasoul Khoshravan
Max - 11 Apr 2007 11:01 GMT
A slightly different take on your post ..

Read it that what you want is a uniques listing of the duplicates
(ie excluding items which appear only once in the source list)

Assume source data running in A2 down

Place in B2:E2
=IF(A2="","",IF(COUNTIF($A$2:A2,A2)>1,"",ROW()))
=IF(ROW(A1)>COUNT(B:B),"",INDEX(A:A,SMALL(B:B,ROW(A1))))
=IF(C2="","",IF(COUNTIF(A:A,C2)>1,ROW(),""))
=IF(ROW(A1)>COUNT(D:D),"",INDEX(C:C,SMALL(D:D,ROW(A1))))
(Leave B1 & D1 blank)

Select B2:E2, copy down to the last row of source data. Col E will return
the uniques listing of the duplicates, neatly bunched at the top. [Col C
returns the "full" uniques list, same as what you'd get when you run
Advanced Filter > Uniques]
Signature

Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---

>I have a column which is the name of cities. There are about 5 cities
> which is repeated in 50 records (rows). I want to get the name of this
> 5 cities in a separate column. How can I do this?
>
> TIA
> Rasoul Khoshravan

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.