Try entering the code below. Using vba

Sub sample() Dim lastRow As Long, j As Long lastRow = Range("A65000").End(xlUp).Row j = 1 For i = lastRow To 2 Step -1 If Cells(i, 1).Value <> Cells(i + 1, 1) Then Cells(i, 1).Copy Cells(j, 3) Cells(i, 1).Offset(0, 1).Copy Cells(j, 4) j = j + 1 End If Next End Sub
source share