Not tested
Sub test()
Dim a, i As Long, ii As Long, n As Long, txt As String
a = Range("a1").CurrentRegion.Value
With CreateObject("Scripting.Dictionary")
.CompareMode = 1
n = 1
For i = 2 To UBound(a, 1)
If a(i, 2) = 855 Then
txt = Join$(Array(a(i, 3), a(i, 4), a(i, 5)), Chr(2))
If Not .exists(txt) Then
n = n + 1
For ii = 1 To UBound(a, 2)
a(n, ii) = a(i, ii)
Next
.Item(txt) = n
Else
a(.Item(txt), UBound(a, 2)) = _
a(.Item(txt), UBound(a, 2)) & ", " & a(i, UBound(a, 2))
End If
End If
Next
End With
Sheets(2).Cells(1).Resize(n, UBound(a, 2)).Value = a
End Sub
Bookmarks