This macro may help you. It assumes your data starts in A1. A new sheet is created with the output.
Sub Test()
Dim MyRow As Range
Dim N As Long
Dim Counter As Long
Dim MySheet As Worksheet
Dim TargetSheet As Worksheet
Set MySheet = ActiveSheet
Sheets.Add
Set TargetSheet = ActiveSheet
MySheet.Activate
For Each MyRow In Cells(1, 1).CurrentRegion.Rows
For N = 2 To Cells(MyRow.Row, Cells.Columns.Count).End(xlToLeft).Column
Counter = Counter + 1
TargetSheet.Cells(Counter, 10) = Cells(MyRow.Row, 1)
TargetSheet.Cells(Counter, 11) = Cells(MyRow.Row, N)
Next N
Next MyRow
End Sub
Bookmarks