Hello,
I am trying to split cell values in a single excel row into multiple cells rows to the bottom through VBA automation.
Attached the data workbook-
Sheet1 - Original Data set
Sheet2 - Desired Data Set
Thanks,
Vik
Hello,
I am trying to split cell values in a single excel row into multiple cells rows to the bottom through VBA automation.
Attached the data workbook-
Sheet1 - Original Data set
Sheet2 - Desired Data Set
Thanks,
Vik
there are 3 names in cell E2, there are 4 values in cell I2, why ?
If solved remember to mark Thread as solved
I guess you are referring to Cell R2. It was a Typo error, it should have only 3 values (Cell R2 - is the Sum Total for the resources)
Re-posting the corrected file...
try this code
![]()
Sub a() r = 2 While Cells(r, 1) <> "" BPC = Cells(r, "E") BPCarr = Split(BPC, vbLf) n = UBound(BPCarr) If n > 0 Then Rows(r + 1 & ":" & r + n).Insert For col = 5 To 20 arr = Split(Cells(r, col), vbLf) For r1 = 0 To UBound(arr) Cells(r + r1, col) = arr(r1) Next Next r = r + n + 1 Else r = r + 1 End If Wend End Sub
Thank you ...
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks