Hello, I would like to be able to have excel search a column of data for duplicates and then move those duplicates into a seperate table. Thanks in advance for you help.
For example:
Column A
123
222
456
123
778
222
New table would have:
123
222
Hello, I would like to be able to have excel search a column of data for duplicates and then move those duplicates into a seperate table. Thanks in advance for you help.
For example:
Column A
123
222
456
123
778
222
New table would have:
123
222
Hi
Try this
rylo![]()
Sub aaa() Set Rng = Range(Range("A1"), Cells(Rows.Count, 1).End(xlUp)) For Each ce In Rng If WorksheetFunction.CountIf(Rng, ce) > 1 And WorksheetFunction.CountIf(Range("C:C"), ce) = 0 Then Cells(Rows.Count, 3).End(xlUp).Offset(1, 0).Value = ce End If Next ce End Sub
Thanks! I ended up using a vlookup over the weekend before I saw you reply.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks