+ Reply to Thread
Results 1 to 3 of 3

Trying to unify multiple different formats of phone numbers

  1. #1
    Registered User
    Join Date
    04-18-2013
    Location
    Malaga, Spain
    MS-Off Ver
    Excel 2010
    Posts
    3

    Trying to unify multiple different formats of phone numbers

    Hello, my first post on this forum

    I have been looking for an answer to my problem but havent been able to find one, so the problem is the following:

    First I will list the various formats and their should be formats:
    040-1234567 = 0401234567 ( the "-" between area code and the number removed)
    00358401234567 = The "00358" should be replaced with 0
    401234567 = Missing 0, should be added
    +358401234567 = "+358" replaced with a 0

    The area codes aint always 3 digits long, they can be anything between 2 and 4 digits, but always start with a SINGLE 0 (except with the international countrycode). And all the phone numbers contain 7-11 digits in total, with the areacode. The international countrycode makes an exception to this aswell, and could make the number in the worst case 15 digits long in total.

    Hopefully I was able to explain my problem understandably and might be able to get some assistance on this

    Thanks in advance.

    -Chanu

  2. #2
    Registered User
    Join Date
    04-12-2013
    Location
    Dresden, Germany
    MS-Off Ver
    Excel 2013
    Posts
    10

    Re: Trying to unify multiple different formats of phone numbers

    The most cases can be done with search&replace (ctrl+h).
    1. search for - and replace with nothing
    2. Seach all of the countrycodes and replace them with 0, do the case 4. first
    3. modify the macro and let it take care of the missing zero
    Please Login or Register  to view this content.
    4. Seach all of the countrycodes and replace them with 0

  3. #3
    Registered User
    Join Date
    04-18-2013
    Location
    Malaga, Spain
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Trying to unify multiple different formats of phone numbers

    Many thanks for your help I'll put that into action tomorrow when I get to work.

+ 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