I have a list with data in one column, the number of rows is in the thousands. I need to transpose this list into a new list with 3 columns (data in the same sequence as the source). Attached is my example with Source and Target tabs.
I have a list with data in one column, the number of rows is in the thousands. I need to transpose this list into a new list with 3 columns (data in the same sequence as the source). Attached is my example with Source and Target tabs.
this will work
![]()
Sub abc() Const shSource As String = "Source" '<==== Change for your needs Const shTarget As String = "Target" '<==== Change for your needs Dim CellPtr As Long, DestRow As Long DestRow = 1 With Worksheets(shSource) For CellPtr = 1 To .Cells(Rows.Count, "a").End(xlUp).Row Step 3 a = .Range(.Cells(CellPtr, "a"), .Cells(CellPtr + 2, "a")) With Worksheets(shTarget) .Cells(DestRow, "a").Resize(, UBound(a)) = Application.Transpose(a) End With DestRow = DestRow + 1 Next End With End Sub
Thanks,
Mike
If you are satisfied with the solution(s) provided, please mark your thread as Solved.
Select Thread Tools-> Mark thread as Solved.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks