Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Stripping the formatting out of a phone number

If you have a column of phone numbers all written in differently. As and example:


1234567890

123.456.7890

123-456-7890

123 456 7890

(123) 456.7890

(123)4567890

123 456789 0


How would you strip all of the formating out of the numbers so that it could be reformatted consistently?


In other words, how would you make the example above look like what's below?


1234567890

1234567890

1234567890

1234567890

1234567890

1234567890

1234567890

Numbers-OTHER, OS X Mountain Lion (10.8.2)

Posted on Nov 16, 2012 12:39 PM

Reply
Question marked as Best reply

Posted on Nov 16, 2012 2:55 PM

this may help:


User uploaded file


B1=SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A1,"-","")," ",""),")",""),"(","")

2 replies

Nov 16, 2012 5:02 PM in response to Wayne Contello

Thanks wayne for the clarification. That's basically what I had to do. Though as you can imagine if there are, not only "-"'s and parentheses, but periods, pluses, stars, pound signs and ampersands, the function could get a little messy to the user.


The only thing I could think of are that was to reference each of the SUBSTITUTED character out to a different column so that if wierd symbols arise they can just be enter in and referenced in the the long and messy SUBSTITUTE function.


Works well,


Thanks

Stripping the formatting out of a phone number

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.