Convert Phone Number

DBFIN

Registered User.
Local time
Today, 05:11
Joined
May 10, 2007
Messages
205
Is there a way to convert a phone number in text format into a number and remove any dashs or parenthesis. What function can I use ?

old format (951) 244-3011
new format 9512443011
 
Replace(Replace(Replace(Replace("(951) 244-3011", "-", ""), " ", ""), "(", ""), ")", "").

Or also could create your own UDF.
 
How about:
Code:
Replace(Replace(Mid("(951) 244-3011", 2), ") ", ""), "-", "")
 

Users who are viewing this thread

Back
Top Bottom