Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Problem with filtering

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



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default Problem with filtering

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
--
Gary's Student


"Tim Walters" wrote:

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




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
Filtering problem Tim Walters[_2_] Excel Programming 2 December 15th 06 08:34 AM
Filtering Problem Curtis S. Excel Discussion (Misc queries) 3 October 11th 06 05:31 PM
Filtering Problem Curtis S. Excel Worksheet Functions 1 October 11th 06 04:10 PM
Help with filtering problem mspinella Excel Discussion (Misc queries) 4 May 22nd 06 06:03 PM
Filtering Problem Jeff Etcell Excel Programming 2 July 2nd 04 02:40 AM


All times are GMT +1. The time now is 10:27 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"