A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Run this macro on a copy of your worksheet.
Enter 9 in the InputBox
Sub ColtoRows()
'routine to take 1 column of a variable number of rows(including blanks) and put in a
'choice of number of columns with A1,A2,A3,etc.moved to A1,B1,C1,etc.
Dim rng As Range
Dim i As Long
Dim j As Long
Set rng = Cells(Rows.Count, 1).End(xlUp)
j = 1
On Error Resume Next
nocols = InputBox("Enter Number of Columns Desired")
For i = 1 To rng.row Step nocols
Cells(j, "A").Resize(1, nocols).Value = _
Application.Transpose(Cells(i, "A") _
.Resize(nocols, 1))
j = j + 1
Next
Range(Cells(j, "A"), Cells(rng.row, "A")).ClearContents
Exit Sub
End Sub
Gord