Home |
Search |
Today's Posts |
#8
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Thanks to you guys, I'm more knowledgeable on macros AND I've been able to
delete the duplicates. I thought I'd seen some data in triplicate or worse (4x) but now it seems that it's gone. Is that just me, or does your code delete all 2 OR MORE instances of data? Thanks again!! "Don Guillett" wrote: try this idea. Works for TWO dups as you posted Sub removeALLdups() mc = "a" For i = Cells(Rows.Count, mc).End(xlUp).Row To 2 Step -1 If Cells(i - 1, mc) = Cells(i, mc) Then Rows(i - 1 & ":" & i).Delete Next i End Sub -- Don Guillett Microsoft MVP Excel SalesAid Software "tim" wrote in message ... I have a list that i need to remove all Duplicates, if I find any, example List 1 1 2 3 3 4 5 5 Goal 2 4 Not sure how to do this, I'm on office 2007 and I dont see a way to do this with Remove Duplicates as it still leaves me with one of each number. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Removing duplicates from a list of addresses | Excel Discussion (Misc queries) | |||
merge list while removing duplicates | Excel Worksheet Functions | |||
merge list while removing duplicates | Excel Discussion (Misc queries) | |||
removing duplicates from a list | Excel Discussion (Misc queries) | |||
Removing Duplicates from a list | Excel Worksheet Functions |