+ Reply to Thread
Results 1 to 4 of 4

Telephone Number Formatting

Hybrid View

  1. #1
    Registered User
    Join Date
    08-19-2014
    Location
    London
    MS-Off Ver
    2010
    Posts
    2

    Question Telephone Number Formatting

    Hi everyone,

    I am working with a database of (roughly) 10,000 records and have telephone numbers in a multitude of different formats. I would like a formula which will make them all the same.

    There is variation in the numbers, which leads me to believe this will be difficult. Some are missing the initial zero, some have the country code with plus symbol before, some with brackets and the spacing is different across the file.

    The closest I've gotten to a solution is with using: [<=9999999] ###-####;0### #### ####

    To get the format 0### #### ####, but this won't remove country codes or symbols. Is there a way to force each entry to start with zero (without adding one if it is already there) and to remove country codes/symbols?

    Any advice would be greatly appreciated.

  2. #2
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Telephone Number Formatting

    It would be helpful to get some examples of the different types of formats that you would be working with but I would guess the easiest way would be work from the other end and get the last 11 digits of the number and put a zero in front. Something like:

    =REPLACE(REPLACE("0"&RIGHT(SUBSTITUTE(A1," ",""),11),5,0," "),10,0," ")

  3. #3
    Registered User
    Join Date
    08-19-2014
    Location
    London
    MS-Off Ver
    2010
    Posts
    2

    Re: Telephone Number Formatting

    It's saying Excel cannot use the number format you typed?

    Side note, are you part of Omega Warfare? I recently put together the artwork for a Skat Injector split under the same label.. small world.

  4. #4
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Telephone Number Formatting

    Sorry, it's a formula not a format. You need to put it in a separate column (like in the attachment). Thinking about it, you may want to extend the formula to:
    =REPLACE(REPLACE("0"&RIGHT(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A1," ",""),"(",""),")",""),11),5,0," "),10,0," ")
    so that it can deal with ( and )

    I am/run Omega Warfare... The Skat Injector split went to press last week - thanks for the art! I assumed Rick did it... send me an email to omegawarfarerecords [at] gmail [dot] com with your address and I'll drop some copies in the post when they arrived.
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Match telephone number with name
    By VlatkoK in forum Excel General
    Replies: 8
    Last Post: 11-22-2013, 08:35 AM
  2. Formatting UK telephone No's
    By Bobjonson in forum Excel General
    Replies: 19
    Last Post: 08-17-2010, 03:35 AM
  3. Formatting telephone numbers as text
    By ozziedave in forum Excel General
    Replies: 2
    Last Post: 05-28-2007, 03:16 PM
  4. Formatting telephone numbers?
    By MnO in forum Excel General
    Replies: 2
    Last Post: 01-17-2007, 08:06 AM
  5. Telephone number format
    By MarkT in forum Excel General
    Replies: 6
    Last Post: 01-18-2005, 07:06 PM

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