+ Reply to Thread
Results 1 to 6 of 6

Phone Number Formatting

  1. #1
    Brant Nyman
    Guest

    Phone Number Formatting

    I have phone number data that has been entered into a column as ##########
    with no (###)###-#### formatting. I have used format cells>number>custom and
    then entered (###)###-#### to change how the fields are displayed. I'm
    trying to find a way to modify the base data so that the formatted brackets
    and dash from the phone number appear in the data not just in the field
    formatting. I tried pasting values but that didn't work. Any ideas?

  2. #2
    Registered User
    Join Date
    08-18-2005
    Posts
    59

    RE: Phone Number Formatting

    Say the column of your ########## numbers starts in A1. Type this formula into B1, and copy it down to the bottom of the column:

    ="("&LEFT(A1,3)&")"&" "&MID(A1,4,3)&"-"&RIGHT(A1,4)

    This will give you (###) ###-####. If you don't want the space, you can remove the ...&" "& part of the formula.

    If you want to get rid of the formulas, copy this new column and paste special --> values.

    Note that this will be text-formatted.
    Excel_Geek
    http://blog.excelgeek.com/

    "...I'll do that in Excel for $50..."

  3. #3
    Gary's Student
    Guest

    RE: Phone Number Formatting

    If your number is in G14, then:

    ="("&LEFT(G14,3)&")"&MID(G14,4,3)&"-"&RIGHT(G14,4)

    will give you a text string as you require. You can then copy the cell with
    the formula and paste it elsewhere as value to get a simple string with no
    formula
    --
    Gary's Student


    "Brant Nyman" wrote:

    > I have phone number data that has been entered into a column as ##########
    > with no (###)###-#### formatting. I have used format cells>number>custom and
    > then entered (###)###-#### to change how the fields are displayed. I'm
    > trying to find a way to modify the base data so that the formatted brackets
    > and dash from the phone number appear in the data not just in the field
    > formatting. I tried pasting values but that didn't work. Any ideas?


  4. #4
    Brant Nyman
    Guest

    RE: Phone Number Formatting

    Exactly what I was looking for! Thanks!

    "Gary's Student" wrote:

    > If your number is in G14, then:
    >
    > ="("&LEFT(G14,3)&")"&MID(G14,4,3)&"-"&RIGHT(G14,4)
    >
    > will give you a text string as you require. You can then copy the cell with
    > the formula and paste it elsewhere as value to get a simple string with no
    > formula
    > --
    > Gary's Student
    >
    >
    > "Brant Nyman" wrote:
    >
    > > I have phone number data that has been entered into a column as ##########
    > > with no (###)###-#### formatting. I have used format cells>number>custom and
    > > then entered (###)###-#### to change how the fields are displayed. I'm
    > > trying to find a way to modify the base data so that the formatted brackets
    > > and dash from the phone number appear in the data not just in the field
    > > formatting. I tried pasting values but that didn't work. Any ideas?


  5. #5
    Brant Nyman
    Guest

    Re: Phone Number Formatting

    This works great too. Thanks!

    "Excel_Geek" wrote:

    >
    > Say the column of your ########## numbers starts in A1. Type this
    > formula into B1, and copy it down to the bottom of the column:
    >
    > ="("&LEFT(A1,3)&")"&" "&MID(A1,4,3)&"-"&RIGHT(A1,4)
    >
    > This will give you (###) ###-####. If you don't want the space, you
    > can remove the ...&" "& part of the formula.
    >
    > If you want to get rid of the formulas, copy this new column and paste
    > special --> values.
    >
    > Note that this will be text-formatted.
    >
    >
    > --
    > Excel_Geek
    >
    >
    > ------------------------------------------------------------------------
    > Excel_Geek's Profile: http://www.excelforum.com/member.php...o&userid=26423
    > View this thread: http://www.excelforum.com/showthread...hreadid=399052
    >
    >


  6. #6
    Dave Peterson
    Guest

    Re: Phone Number Formatting

    =text(a1,"(###)###-####")
    drag down
    and edit|copy, edit|paste special|values

    is another alternative.

    Brant Nyman wrote:
    >
    > I have phone number data that has been entered into a column as ##########
    > with no (###)###-#### formatting. I have used format cells>number>custom and
    > then entered (###)###-#### to change how the fields are displayed. I'm
    > trying to find a way to modify the base data so that the formatted brackets
    > and dash from the phone number appear in the data not just in the field
    > formatting. I tried pasting values but that didn't work. Any ideas?


    --

    Dave Peterson

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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