+ Reply to Thread
Results 1 to 8 of 8

Change Phone number format

  1. #1
    Registered User
    Join Date
    08-26-2014
    Location
    Cupertino CA
    MS-Off Ver
    2007
    Posts
    3

    Change Phone number format

    I have a long column of phone numbers. I need to put all the numbers into (xxx) xxx-xxxx format.

    Currently they are in three different formats.
    1) xxx-xxx-xxxx
    2) xxxxxxxxxx
    3) (xxx) xxx-xxxx

    Thank you.

    Gene

  2. #2
    Valued Forum Contributor
    Join Date
    04-22-2014
    Location
    Auckland, New Zealand
    MS-Off Ver
    Office 365 (work) and Excel 2013 (home)
    Posts
    1,167

    Re: Change Phone number format

    =SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A1,"-",)," ",),"(",),")",) then format as (000) 000-0000
    Please add reputation by clicking on the * if I have helped.
    Please mark the thread SOLVED if your issue has been resolved.
    Thanks, Glenn.

  3. #3
    Forum Contributor
    Join Date
    05-04-2014
    Location
    New Jersey, United States
    MS-Off Ver
    Excel 2010, 2013
    Posts
    120

    Re: Change Phone number format

    Try this:

    =IF(ISERR(FIND("(",A1)),"("&LEFT(SUBSTITUTE(A1&"-","-",),3)&") "&MID(SUBSTITUTE(A1&"-","-",),4,3)&"-"&RIGHT(SUBSTITUTE(A1&"-","-",),4),A1)

  4. #4
    Valued Forum Contributor
    Join Date
    04-22-2014
    Location
    Auckland, New Zealand
    MS-Off Ver
    Office 365 (work) and Excel 2013 (home)
    Posts
    1,167

    Re: Change Phone number format

    Needs to be converted to a number at the end, so try this =SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A1,"-",)," ",),"(",),")",)*1

  5. #5
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Change Phone number format

    Try this

    =REPLACE("("&REPLACE(TRIM(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A1,"-",""),"(",""),") ","")),4,,") "),10,,"-")

    A
    B
    1
    xxx-xxx-xxxx (xxx) xxx-xxxx
    2
    xxxxxxxxxx (xxx) xxx-xxxx
    3
    (xxx) xxx-xxxx (xxx) xxx-xxxx
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  6. #6
    Registered User
    Join Date
    08-26-2014
    Location
    Cupertino CA
    MS-Off Ver
    2007
    Posts
    3

    Re: Change Phone number format

    I'm very new at this and I don't know how to begin.

    Step 1: Highlight the column of phone numbers??

    Step 2: Paste one of the formulas like:
    =SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A1,"-",)," ",),"(",),")",)*1
    into the fx box and hit enter??

    All it does is replace the first phone number in the column with the formula.

    ??

  7. #7
    Forum Contributor
    Join Date
    05-04-2014
    Location
    New Jersey, United States
    MS-Off Ver
    Excel 2010, 2013
    Posts
    120

    Re: Change Phone number format

    1.) Paste the formula of your choice into an empty column next to the first phone number listed, then hit enter.
    2.) Hover your cursor over the bottom-right corner of the cell that you just pasted the formula in until you see a small black plus sign. Once you see this, double-click. The formula should fill down automatically.
    3.) Highlight this new column of phone numbers and type the following keys (not including the commas): /,h,v,v,enter
    4.) Then, copy/paste this entire column over the original column of phone numbers.
    Last edited by clabulis; 08-26-2014 at 10:41 PM.

  8. #8
    Valued Forum Contributor
    Join Date
    04-22-2014
    Location
    Auckland, New Zealand
    MS-Off Ver
    Office 365 (work) and Excel 2013 (home)
    Posts
    1,167

    Re: Change Phone number format

    Put the formula in a blank column then drag or copy down to the end of your list of phone numbers. If you want to replace the phone numbers you currently have copy the new phone numbers you have just created and paste special, values over the old ones. You can then format as you want by right clicking on the phone numbers (select them all first) then click on Format Cells, then on the number tab then on custom. In the box directly under Type: put in (000) 000-0000.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Change Format of Column to Phone Format
    By basketball2524 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-17-2013, 10:38 AM
  2. Phone Format - change value.
    By jreimer in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 01-23-2008, 03:03 PM
  3. Format change of phone number
    By helpjim in forum Excel General
    Replies: 7
    Last Post: 05-18-2006, 02:34 PM
  4. how do I add phone number format as a permanent custom format?
    By frustratedagain in forum Excel General
    Replies: 3
    Last Post: 02-03-2006, 11:52 PM
  5. change format for phone numbers automatically
    By bj in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-06-2005, 04:05 AM

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