Your example solution in thread #1 has 17 characters including the spaces. (+ 44 XXX XXX XXXX)
In your attachment, the numbers with a prefix 44 have anywhere from 16 to 19 characters total.
What is the determining factor in how to split it up?
And what is the determing factor for the other numbers?
This will do what you original asked for in thread #1 but it does not take the above mentioned differences in consideration.
Sub TryThis()
Dim c As Range
For Each c In Range("C2:C" & Cells(Rows.Count, "C").End(xlUp).Row)
c.Value = WorksheetFunction.Substitute(c.Value, " ", "")
c.Value = Left(c.Value, 1) & " " & Mid(c.Value, 2, 2) & " " & Mid(c.Value, 4, 3) & " " & Mid(c.Value, 7, 3) & " " & Mid(c.Value, 10, 4)
Next c
End Sub
Bookmarks