Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel remove duplicates

Status
Not open for further replies.

camidon

Programmer
May 9, 2000
268
US
I have a column of data in Excel that is a list of e-mail addresses. The problem is that many of them are duplicates. I would like to know if there is a way to get rid of all of the duplicates in the list.

Thank you,

Chris
 
The easiest way is to select the data and then go to Data>Filter>Advanced Filter. Have it filter in place which is the default and down the bottom of the dialog box, click on unique records only. Click Ok and only unique records will appear.
Patricia
 
Patricia,
Is there a way to get the list of non-unique records only?
 
To keep only the items that appear in a filtered list, you can select all visible cells, hit Edit-Go to-Special-Visible cells only. Copy. Just an FYI, not sure if it works in your situation.
 
Dim x

Sub deletion()
'
' Macro recorded 11/24/2001 by Leslie Opsahl


For x = 2 To 65000
If Cells(x, 2) = "" Then End
If Cells(x, 2) = Cells((x - 1), 2) Then Call remove
Next x
End Sub

Sub remove()


Rows(x - 1).Select
Selection.Delete Shift:=xlUp
x = x - 1
End Sub

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top