+ Reply to Thread
Results 1 to 3 of 3

phone number formatting

  1. #1
    Registered User
    Join Date
    03-31-2008
    Posts
    11

    phone number formatting

    I'm working on a database file that has both foreign and domestic phone numbers in it. I need to add a "+" sign in front of all the numbers, what is the easiest way to go about this? Something is off in the formatting because when ever I try to do a custom format it doesn't change anything, nor does it change when I convert the format to a number. I am pretty sure all spaces have been removed but I cannot be certain. I've attached a copy for you to look at.

    Thank you,

    Dustin
    Attached Files Attached Files

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

    Re: phone number formatting

    Hi, are the samples "before" or "after", i.e do you want to add another + sign in front or are you showing the result?

    In any case, the data is text, so there's not much you can do to change that with formatting.

    if you have a "real" number, like

    12124435546

    then you can use a custom format like

    "+"0-000-000-0000

    to get

    +1-212-443-5546

    hth

  3. #3
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: phone number formatting

    What is in the blank rows in between?

    Assuming text, then in A2 use formula:

    =IF(LEFT(A2)="+",A2,IF(ISNUMBER(RIGHT(A2,4)+0),"+"&A2,A2)) copied down

    Then you can copy this column and Edit|Paste Special >> Values over the original and delete the formula column.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

+ 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