Transposition of multiple rows

The worksheet contains column A that lists a name (A2) and under that name, 11 cells containing labels. Column B lists corresponding data on the same row, for each label in A.
In the original worksheet, this is repeated a few hundred times.
In the example, the 11 cells have been manually transposed to the same row as the "Name" label, starting from Column E, and extending to Column O.
And the data from column B has been manually transposed across these columns, on to the same row as the name.

Required: a script or formula to do this for several hundred entries.
Marina-listEE-request.xlsx
gregfthompsonAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Subodh Tiwari (Neeraj)Excel & VBA ExpertCommented:
You may try something like this....
In the attached, click the button called "Transform Data" on Sheet2 to run the code.
Sub TransformData()
Dim sws As Worksheet, dws As Worksheet
Dim slr As Long, dlr As Long, i As Long

Application.ScreenUpdating = False

Set sws = Sheets("Sheet2")
slr = sws.Cells(Rows.Count, 2).End(xlUp).Row

On Error Resume Next
Set dws = Sheets("Output")
dws.Cells.Clear
On Error GoTo 0

If dws Is Nothing Then
    Set dws = Sheets.Add(after:=sws)
    dws.Name = "Output"
End If
dws.Range("B1").Value = "Name"
sws.Range("B3:B13").Copy
dws.Range("C1").PasteSpecial xlPasteAll, Transpose:=True

For i = 2 To slr Step 12
    dlr = dws.Range("B" & Rows.Count).End(3)(2).Row
    sws.Cells(i, 2).Copy dws.Range("B" & dlr)
    sws.Cells(i + 1, 2).Offset(0, 1).Resize(11).Copy
    dws.Range("C" & dlr).PasteSpecial xlPasteAll, Transpose:=True
Next i
dws.UsedRange.WrapText = False
dws.UsedRange.Columns.AutoFit
dws.Range("B1").CurrentRegion.Borders.Color = vbBlack
dws.Select
dws.Range("B1").Select
Application.ScreenUpdating = True
End Sub

Open in new window

Marina-listEE-request.xlsm
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
gregfthompsonAuthor Commented:
Thank you very much.
0
gregfthompsonAuthor Commented:
Thanks heaps.
0
Subodh Tiwari (Neeraj)Excel & VBA ExpertCommented:
You're welcome!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
VBA

From novice to tech pro — start learning today.