Function NoOnly(UsrRng As Range)
NoOnly=""
For n = 1 To Len(UsrRng.Value)
If IsNumeric(Mid(UsrRng.Value, n, 1)) Then
NoOnly = NoOnly & Mid(UsrRng.Value, n, 1)
End If
Next n
NoOnly = Val(NoOnly)
End Function
Function NumOnly(txt As String) As String
Dim regex As Object
Set regex = CreateObject("VBScript.RegExp")
With regex
.Pattern = "\D"
.Global = True
End With
NumOnly = regex.Replace(txt, "")
End Function