Option Explicit
Sub demo()
Dim a, t() As String
Dim tblRng As Range
Dim nRows As Long, nCols As Long, nItems As Long, i As Long, j As Long, n As Long
a = [B1]
Cells.ClearContents
Set tblRng = Application.InputBox(prompt:="Start Position", Type:=8)
nRows = Application.InputBox(prompt:="Number of rows")
t = Split(a, ",")
nItems = Int(UBound(t, 1)) + 1
nCols = nItems / nRows + 1
If nItems Mod nRows = 0 Then nCols = nCols - 1
ReDim b(1 To nRows, 1 To nCols)
For i = 1 To nCols
For j = 1 To nRows
b(j, i) = t(n)
n = n + 1
If n > UBound(t, 1) Then GoTo Finish
Next j
Next i
Finish:
tblRng.Resize(nRows, nCols) = b
[A1] = "Dataset:": [B1] = a
End Sub
Bookmarks