Hi
this should do it by macro, if you prefer - you will need to set the input and output cells, and make sure the replace function uses a character you'll never have in your string (Where I used "@")
Sub parse_cells()
Dim InputCell As Range, OutputCell As Range, n As Long, RepIt As Boolean, txt As String, ArrNos As Variant, y As Long
Set InputCell = Range("A1")
Set OutputCell = Range("A10")
RepIt = False
txt = InputCell.Value
For n = 1 To Len(txt)
If Mid(txt, n, 1) = "(" Then RepIt = True
If Mid(txt, n, 1) = ")" Then RepIt = False
If Mid(txt, n, 1) = "," And RepIt = True Then Mid(txt, n, 1) = "@"
Next n
txt = Replace(txt, ";", ",")
ArrNos = Split(txt, ",")
n = 0
For y = LBound(ArrNos) To UBound(ArrNos)
OutputCell.Offset(n, 0).Value = Replace(ArrNos(y),"@",",")
n = n + 1
Next y
End Sub
Bookmarks