+ Reply to Thread
Results 1 to 5 of 5

Format a Phone Number

  1. #1
    Forum Contributor
    Join Date
    03-30-2008
    Posts
    121

    Format a Phone Number

    I am using Excel to clean up a name and address list before
    I export it to Access.

    I now have parsed a field to yield the result 812 3340132
    and for the final step I would like to remove the space between
    812 and 3320132 and add a 1 to the front of the new number
    which would then read 18123320132.

    Can I do this as a Find and Replace action in the existing column
    or do I need to create a new column with an entirely new formula?

    Thanks in advance.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Formatting Phone Number

    You could do this from the user interface. Select the columns, replace space with nothing. Then put =10000000000 in a cell, copy, select the cells of interest, paste special, add.

    Or use a formula: =10000000000 + SUBSTITUTE(A1, " ", "")
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Formatting Phone Number

    after removing the space you could also format the number to just show the leading 1 without actually storing it in the number. Use custom format

    1#

    Or for a formula approach

    =text(a1,"1#")

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Format a Phone Number

    format the number to just show the leading 1
    Don't think the 1 will export to Access if you do that ...
    Or for a formula approach
    =text(a1,"1#")
    Might export as Text to Access if you do that ...

  5. #5
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Format a Phone Number

    Don't think it will export to Access if you do that .
    completely missed the Access aspect. Thanks for pointing that out, shg.

+ 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