i repeat the macro from above, with a small modification for the "Case" because it's 1 to 10
Column 168 ? the macro writes from column 162 for 6 columns, so 162-167, so it modifies(change/delete?) column 163 but column 168, no !
Sub Moan()
finalrow = Cells(Rows.Count, 160).End(xlUp).Row
For x = 4 To finalrow
Select Case Cells(x, 161).Value
Case 1, 2,3,4,5,6,7,8,9,10
i = Cells(x, 161).Value - 1
Cells(x, 162).Resize(, 6).Value = Array(Cells(x, 6 + i).Value, , Cells(x, 17 + i).Value, Cells(x, 50 + i).Value, Cells(x, 61 + i).Value, Cells(x, 72 + i).Value, Cells(x, 83 + i).Value)
End Select
Next
End Sub
Can you post a file with non-sensitive data ?
Bookmarks