Try this
Sub SplitData()
Dim cArray As Variant
Dim cValue As String
Dim rowIndex As Integer, strIndex As Integer, destRow As Integer
Dim targetColumn As Integer
Dim lastRow As Long
Dim ws As Worksheet
targetColumn = 3 'column number with comma separated data
Set ws = ThisWorkbook.Worksheets("Sheet1") 'change Sheet1 to your data data
destRow = 0
With ws
lastRow = .Cells(.Rows.Count, "A").End(xlUp).Row
For rowIndex = 1 To lastRow
cValue = .Cells(rowIndex, targetColumn).Value 'getting the cell with comma separated data
cArray = Split(cValue, ",") 'splitting comma separated data in an array
For strIndex = 0 To UBound(cArray)
destRow = destRow + 1
.Cells(destRow, 5) = .Cells(rowIndex, 1) '5 represents Column E
.Cells(destRow, 6) = .Cells(rowIndex, 2) '6 represents Column F
.Cells(destRow, 7) = Trim(cArray(strIndex)) '7 represents Column G
Next strIndex
Next rowIndex
End With
End Sub
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…