A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
The following macro will store the text without the leading digits in the cell to the left.
Sub test()
Dim cell As Range
Dim num As String
Dim ch As String
Dim i As Long
Dim j As Long
For Each cell In Selection
num = ""
j = Len(cell.Value)
For i = 1 To j
ch = Mid(cell.Value, i, 1)
If Not IsNumeric(ch) Or ch = " " Then
' Write result to the column on the left
cell.Offset(0, -1).Value = Mid(cell.Value, i, j - i + 1)
i = j + 1 'Terminate the loop
End If
Next i
Next cell
End Sub
You can add a step to clear the original cell if you desire. If the text contains all digits, the cell to the left is untouched.