Sub dups()
Dim LR As Long, i As Long, j As Long, x As Variant
LR = Range("A" & Rows.Count).End(xlUp).Row
For i = 1 To LR
x = Application.Match(Range("B" & i).Value, Columns("A"), 0)
If IsNumeric(x) Then
j = j + 1
Range("C" & j) = Range("B" & i).Value
Range("B" & i).ClearContents
Range("A" & x).ClearContents
End If
Next i
On Error Resume Next
Columns("A").SpecialCells(xlCellTypeBlanks).Delete shift:=xlShiftUp
Columns("B").SpecialCells(xlCellTypeBlanks).Delete shift:=xlShiftUp
On Error GoTo 0
End Sub