how do I remove data from cells ex. (232)-555-1212 to 2325551212

B

Bearacade

Function NumOnly(AnyVal As String)
Dim RegEx
Set RegEx = CreateObject("vbscript.regexp")
RegEx.Global = True
RegEx.Pattern = "[^\d\s]+"
KillNonNum = RegEx.Replace(AnyVal, "")
Set RegEx = Nothing
End Function

=NumOnly(A1)
 
L

Liz

I'm sure there's a real formula, but I use the find & replace feature. Put
the character to remove (one at a time) in the Find box, leave the replace
box empty, and replace all. You have to select the column you want to
remove them from.
 
L

logan27371

That is a formatting issue right click on the cell select format cell and
then change the format to general or whatever format you want.
 
Top