Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Removing duplicate entries

How about keeping the values in the cell, but using format|conditional
formatting to make those duplicates look empty?

Debra Dalgleish shows how:
http://www.contextures.com/xlCondFor...html#Duplicate

And this will make it easier if you ever have to sort/filter the data.

katiek648 wrote:

My company just purchased an email list that has numberous duplicate emails.
It looks something like this:

First Name Last Name Email
Thomas Gordon
William Hughes

Robert Doby

Carter Burdette

Claudia Coscia

Christine Holland

Joel Hayhurst

Krista Bates

William Hayward

D Wade Cloud

John Sonderegger


We would like to remove all duplicate emails except for the first occuring
one so that it would look like this:

First Name Last Name Email
Thomas Gordon

William Hughes
Robert Doby
Carter Burdette
Claudia Coscia
Christine Holland
Joel Hayhurst

Krista Bates
William Hayward
D Wade Cloud
John Sonderegger


Is there some way to set up a filter to do this automatically? Thanks for
your help in advance!!


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 168
Default Removing duplicate entries

Sub test()
' This function must sort first.
'This assumes the name and email address are in column A and B
Range("A1:" & (Range("B65536").End(xlUp).Address)).Select
Selection.Sort Key1:=Range("B1"), Order1:=xlAscending, _
Header:=xlNo, OrderCustom:=1, MatchCase:=False,
Orientation:=xlTopToBottom
ColNum = Selection(2).Column
For RowNdx = Selection(Selection.Cells.Count).Row To _
Selection(2).Row + 1 Step -1
If Cells(RowNdx, ColNum).Value = Cells(RowNdx - 1, ColNum).Value
Then
Range("B" & RowNdx).ClearContents
'Cells (RowNdx, ColNum).Value = ""
End If
Next RowNdx


End Sub



"katiek648" wrote in message
...
My company just purchased an email list that has numberous duplicate
emails.
It looks something like this:

First Name Last Name Email
Thomas Gordon
William Hughes

Robert Doby

Carter Burdette

Claudia Coscia

Christine Holland

Joel Hayhurst

Krista Bates

William Hayward

D Wade Cloud

John Sonderegger


We would like to remove all duplicate emails except for the first occuring
one so that it would look like this:

First Name Last Name Email
Thomas Gordon

William Hughes
Robert Doby
Carter Burdette
Claudia Coscia
Christine Holland
Joel Hayhurst

Krista Bates
William Hayward
D Wade Cloud
John Sonderegger



Is there some way to set up a filter to do this automatically? Thanks for
your help in advance!!



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
removing duplicate entries armagan Excel Discussion (Misc queries) 1 June 12th 06 05:42 PM
Removing duplicate entries. dh01uk Excel Discussion (Misc queries) 2 January 13th 06 03:51 PM
Duplicate Entries ConfusedNHouston Excel Discussion (Misc queries) 1 November 1st 05 12:50 PM
problem tagging duplicate entries julz Excel Worksheet Functions 5 June 30th 05 01:59 AM
count duplicate (or, inversely, unique) entries, but based on a condition markx Excel Worksheet Functions 3 March 8th 05 06:57 PM


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