+ Reply to Thread
Results 1 to 6 of 6

updating phone number formatting

Hybrid View

lostinformulas updating phone number... 08-07-2006, 01:30 PM
VBA Noob Hi, The format you want... 08-07-2006, 02:10 PM
lostinformulas updating formatting phone... 08-07-2006, 03:06 PM
VBA Noob So say in Col H1 enter the... 08-07-2006, 03:19 PM
lostinformulas updating formatting phone... 08-07-2006, 03:59 PM
Guest Re: updating phone number... 08-07-2006, 05:30 PM
  1. #1
    Registered User
    Join Date
    06-08-2006
    Location
    Portland, OR
    MS-Off Ver
    Micro Soft XP, Excel 2003
    Posts
    97

    updating phone number formatting

    Hi everyone,
    I need help, again. I have several worksheet that I need to combine the information in order to upload into a access database. I problem that I'm having is the phone numbers are formatted differently therefore they are not all of the are uploading. The Access data base field is classified as text. The phone numbers that did upload correct are formatted as special / phone numbers. I tried changing the cells formatting but it doesn't update the existing information. It does update if I type the number in by hand.

    Is there away of updating the existing numbers to be formatted like the example below.
    (555) 777-4444.

    All suggestions are always appreciated.
    Thanks
    Lostinformulas

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Hi,


    The format you want is (###) ###-####.

    However if your numbers has spaces it will read as text. You could use a extra column with this formula to remove one space

    =SUBSTITUTE(A1," ","",1)

    Drag down and covert to number then custom format as above.

    If this doen't help a sample of the data would be useful

    VBA Noob.

  3. #3
    Registered User
    Join Date
    06-08-2006
    Location
    Portland, OR
    MS-Off Ver
    Micro Soft XP, Excel 2003
    Posts
    97

    updating formatting phone number

    This is how the numbers are formatted in column "G"
    800-942-5590
    484-553-2066
    254-715-2503
    952-294-2990
    715-284-5732
    734-326-7844
    405-387-9415
    205-792-1208

    Thanks
    lostinformulas

  4. #4
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    So say in Col H1 enter the below and drag down

    =SUBSTITUTE(G1,"-","")

    Then copy and paste special values.

    Next you should get excel paste box options. Select and change to number.

    Next custom format cells as (###) ###-####

    Hopefully job done.

    VBA Noob

  5. #5
    Registered User
    Join Date
    06-08-2006
    Location
    Portland, OR
    MS-Off Ver
    Micro Soft XP, Excel 2003
    Posts
    97

    updating formatting phone number

    Thanks that worked great!
    Lostinformulas

  6. #6
    Beege
    Guest

    Re: updating phone number formatting

    lost,

    i wish that excel had masking similar to Access, so that numbers that will
    never get calculated, like phone, zip or part numbers could be entered (as
    text) but be displayed with parentheses, dashes, points in the correct
    places.

    Does anyone know if MS has plans or this in future release?

    Beege

    "lostinformulas"
    <lostinformulas.2c6kc6_1154971815.9888@excelforum-nospam.com> wrote in
    message news:lostinformulas.2c6kc6_1154971815.9888@excelforum-nospam.com...
    >
    > Hi everyone,
    > I need help, again. I have several worksheet that I need to combine the
    > information in order to upload into a access database. I problem that
    > I'm having is the phone numbers are formatted differently therefore
    > they are not all of the are uploading. The Access data base field is
    > classified as text. The phone numbers that did upload correct are
    > formatted as special / phone numbers. I tried changing the cells
    > formatting but it doesn't update the existing information. It does
    > update if I type the number in by hand.
    >
    > Is there away of updating the existing numbers to be formatted like the
    > example below.
    > (555) 777-4444.
    >
    > All suggestions are always appreciated.
    > Thanks
    > Lostinformulas
    >
    >
    > --
    > lostinformulas
    > ------------------------------------------------------------------------
    > lostinformulas's Profile:
    > http://www.excelforum.com/member.php...o&userid=35229
    > View this thread: http://www.excelforum.com/showthread...hreadid=569094
    >




+ 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