A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Hi,
sample
select 3 cells C1:E1
pic1
.
and run the below vba
result
pic2
'
'==================
Sub Split_Selection_Range()
'07-09-2024
Dim rng, x, y, N, v, vv, t
If MsgBox("Select the range ??", vbOKCancel) = vbCancel Then Exit Sub
Set rng = Selection
For x = 1 To 3
If x <= 2 Then
N = Len(rng.Item(x))
For y = 1 To N
Cells(rng.Row + y, rng.Item(x).Column) = Mid(rng.Item(x), y, 1)
Next y
Else
v = Split(rng.Item(3), vbLf)
t = 1
For Each vv In v
Cells(rng.Row + t, rng.Item(x).Column).Value = vv
t = t + 1
Next vv
End If
Next x
End Sub