No problem
Try the following
Sub Test()
Columns("E:G").Clear
CurrentSubHeading = Cells(1, 1)
Cells(1, 5) = CurrentSubHeading
Cells(65536, 5).End(xlUp).Offset(1, 1) = Cells(1, 2)
Cells(65536, 6).End(xlUp).Offset(0, 1) = Cells(1, 3)
For N = 2 To Cells(65536, 1).End(xlUp).Row
If Cells(N, 1) <> CurrentSubHeading Then
Cells(65536, 6).End(xlUp).Offset(2, -1) = Cells(N, 1)
CurrentSubHeading = Cells(N, 1)
Cells(65536, 5).End(xlUp).Offset(1, 1) = Cells(N, 2)
Cells(65536, 6).End(xlUp).Offset(0, 1) = Cells(N, 3)
Else
Cells(65536, 6).End(xlUp).Offset(1, 0) = Cells(N, 2)
Cells(65536, 6).End(xlUp).Offset(0, 1) = Cells(N, 3)
End If
Next N
End Sub
Bookmarks