A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
You can automate your process with the Worksheet_Change function. Right click the name tab of your worksheet and select View Code. Paste this into the window titled something like Book1 - Sheet1 (Code),
Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Target, Range("B2:E10")) Is Nothing Then
For Each Cell In Target
If Not Cell.HasFormula Then
iResult = ""
For i = 1 To Len(Cell.Value)
n = Asc(Mid(Cell.Value, i, 1))
If n > 47 And n < 58 Then
iResult = iResult & Chr(n)
End If
Next
Cell.Value = CLng(iResult)
End If
Next Cell
End If
End Sub
Make any adjustment ot the range found in the second line. This should represent the area you want this routine to react upon if any or all cells in that range change in value. Press Alt+Q when you are satisfied with the code.
With this routine in place, either manually editing or pasting in values should strip the values of all non-numeric characters.
Note that I omitted the decimal point (e.g. Chr(46)) in retrieval. Post back if you require decimal numbers. I also allowed for formulas to be input without change.