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 Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I remove duplicates

Status
Not open for further replies.

duncansancho

Technical User
Oct 9, 2003
45
GB
I often have lists in excel which contain duplicate entries.
Untill now I have been sorting the list alphabetically and then running the following code but it is slow slow slow. There must be a better way, please?

Range("A3").Select
Do Until ActiveCell = ""
Do While ActiveCell = ActiveCell.Offset(1, 0)
ActiveCell.Delete
Loop
ActiveCell.Offset(1, 0).Range("A1").Select
Loop

Thanks!
Duncan
 
Take a look at the Advanced Filter. There is a check box for "Unique records only"

From Excel menu: Data/Filter/Advanced Filter...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top