+ Reply to Thread
Results 1 to 5 of 5

reformatting phone numbers (removing special characters "_,-,/, ,(,),etc..."

  1. #1
    Registered User
    Join Date
    08-22-2012
    Location
    Bay Area, CA
    MS-Off Ver
    Excel 2010
    Posts
    1

    Question reformatting phone numbers (removing special characters "_,-,/, ,(,),etc..."

    I have a DB that uses a text field for phone numbers (very annoying) there is no validation. I want to reformat the entire DB and import it again using a standard format. Currently when I export the numbers I get several different formats. (e.g. (555) 555-5555, 555.555.5555, 555-555-5555, 555 555 5555, and others)

    How can I manipulate the exported data in order to remove all characters ("-", "(", ")", etc) and Spaces to get the numbers in this format XXXXXXXXXX, from there I know how to format the phone numbers.

    Thank you,

    Davesfcm
    Last edited by davesfcm; 11-16-2012 at 02:58 PM.

  2. #2
    Forum Contributor dogberry's Avatar
    Join Date
    07-15-2012
    Location
    Wales, UK
    MS-Off Ver
    Excel 2010
    Posts
    624

    Re: reformatting phone numbers (removing special characters "_,-,/, ,(,),etc..."

    Hi

    Try using find/replace select what you want to find ie - and with the replace put nothing in that should take the dash out and join the two numbers

    Chris
    Click my star if I helped Thanks

  3. #3
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,834

    Re: reformatting phone numbers (removing special characters "_,-,/, ,(,),etc..."

    UDF

    =NumberOnly(A1)
    Please Login or Register  to view this content.
    Attached Files Attached Files

  4. #4
    Forum Contributor dogberry's Avatar
    Join Date
    07-15-2012
    Location
    Wales, UK
    MS-Off Ver
    Excel 2010
    Posts
    624

    Re: reformatting phone numbers (removing special characters "_,-,/, ,(,),etc..."

    Hi

    Pleased to help and thanks for the rep.

    Chris

  5. #5
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: reformatting phone numbers (removing special characters "_,-,/, ,(,),etc..."

    Try this Array formula, confirm with Ctrl+Shift+Enter not just Enter
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1