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 / Programming / December 2006

Tip: Looking for answers? Try searching our database.

Problem with filtering

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Tim Walters - 16 Dec 2006 09:06 GMT
I'm able to filter out lines which are complete duplicates of existing ones.

What I can't do is eliminate lines in which just one cell is duplicated.

For example, suppose I have two columns: email addresses and activities.
Someone has an email address alongside tennis and the same email address
alongside golf, but it's the duplicate email address that I want to filter
out. How can I get Excel to eliminate the second line?

Thanks in advance to anyone who replies.

Tim
Gary''s Student - 16 Dec 2006 10:56 GMT
Hi TIm:

We will use a combination of COUNIF() in a helper column and Autofiltering:

Say our data (in Cols A&B) is:

size    type
large    dog
medium    dog
small    dog
large    cat
medium    cat
small    cat
large    bird
medium    bird
small    bird
large    fish
medium    fish
small    fish
tiny           ant

in C2 enter:
=COUNTIF($A$2:A2,A2) and copy down column C, resulting in:

size    type    helper
large    dog    1
medium    dog    1
small    dog    1
large    cat    2
medium    cat    2
small    cat    2
large    bird    3
medium    bird    3
small    bird    3
large    fish    4
medium    fish    4
small    fish    4
tiny    ant    1

Then turn on autofilter and pick 1 for column C
Signature

Gary's Student

> I'm able to filter out lines which are complete duplicates of existing ones.
>
[quoted text clipped - 8 lines]
>
> Tim
 
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.