IdabaMalouki
New Member
- Joined
- Sep 10, 2024
- Messages
- 15
- Office Version
- 2021
- Platform
- Windows
I have an irregular data set that looks like this:

Can the above VBA code be tweaked to sort the above irregular dataset from colum A into columns C thru J as pictured above? Thanks in advance.

VBA Code:
Sub organized_data_v1()
Dim i As Long, k As Long
Application.ScreenUpdating = False
k = 2
For i = 1 To Range("A" & Rows.Count).End(3).Row Step 20
Range("C" & k).Value = Range("A" & i + 17)
Range("D" & k).Resize(1, 6).Value = Application.Transpose(Range("A" & i + 3).Resize(6).Value)
Range("D" & k + 1).Resize(1, 6).Value = Application.Transpose(Range("A" & i + 9).Resize(6).Value)
k = k + 2
Next
Application.ScreenUpdating = True
End Sub
Can the above VBA code be tweaked to sort the above irregular dataset from colum A into columns C thru J as pictured above? Thanks in advance.