Match 2 columns of data and delete duplicates
Closed
Daniel Mc.
-
15 Nov 2010 à 14:16
venkat1926 Posts 1863 Registration date Sunday 14 June 2009 Status Contributor Last seen 7 August 2021 - 15 Nov 2010 à 21:29
venkat1926 Posts 1863 Registration date Sunday 14 June 2009 Status Contributor Last seen 7 August 2021 - 15 Nov 2010 à 21:29
Related:
- Match 2 columns of data and delete duplicates
- Tentacle locker 2 app store - Download - Adult games
- Delete duplicates in excel - Guide
- My cute roommate 2 - Download - Adult games
- Fnia 2 - Download - Adult games
- Feeding frenzy 2 - Download - Arcade
1 response
venkat1926
Posts
1863
Registration date
Sunday 14 June 2009
Status
Contributor
Last seen
7 August 2021
811
15 Nov 2010 à 21:29
15 Nov 2010 à 21:29
BEFORE DOING THIS SAVE YOUR FILE SAFELY SOME WHERE SO THAT DATA CAN BE RETRIEVED IF THERE IS A MES UP .
2. row no1. in both sheet are having column headings.
I am sure you know where to park the macro. try this macro
the macro is
2. row no1. in both sheet are having column headings.
I am sure you know where to park the macro. try this macro
the macro is
Sub test()
Dim r2 As Range, j As Long, k As Long, cfind As Range, x
With Worksheets("sheet1")
j = .Range("M2").End(xlDown).Row
For k = j To 2 Step -1
x = .Cells(k, "M").Value
With Worksheets("sheet2")
Set r2 = Range(.Range("A2"), .Range("A2").End(xlDown))
Set cfind = r2.Cells.Find(what:=x, lookat:=xlWhole)
If Not cfind Is Nothing Then
GoTo line1
Else
GoTo nextk
End If
End With
GoTo nextk
line1:
.Cells(k, "m").EntireRow.Delete
nextk:
Next k
End With
End Sub