This what you want?
Sub checkParts()
Const sh1 As String = "sheet1" '<-- Change for your needs
Const sh2 As String = "sheet2" '<-- Change for your needs
Dim a, i As Long, ii As Long
With Worksheets(sh1)
a = .Range("a1").CurrentRegion
End With
With CreateObject("scripting.dictionary")
.comparemode = 1
For i = 1 To UBound(a)
If Not .exists(a(i, 1)) Then
.Item(a(i, 1)) = Join(Array(a(i, 1), a(i, 3), a(i, 2), a(i, 4), a(i, 5)), "|")
Else
.Item(a(i, 1)) = Join(Array(.Item(a(i, 1)), a(i, 3), a(i, 2)), "|")
End If
Next
a = .items
End With
With Worksheets(sh2)
.Cells.Clear
For i = 0 To UBound(a)
x = Split(a(i), "|")
For ii = 0 To UBound(x)
.Cells(i + 1, ii + 1) = x(ii)
Next
Next
End With
End Sub
Bookmarks