+ Reply to Thread
Results 1 to 6 of 6

noob stuck with automatically formatting Telephone numbers - REWARD FOR THE HELPER :D?

  1. #1
    Registered User
    Join Date
    09-02-2014
    Location
    torquay
    MS-Off Ver
    2010
    Posts
    11

    noob stuck with automatically formatting Telephone numbers - REWARD FOR THE HELPER :D?

    Hi guys,

    I've become unstuck with a little problem involving Phone numbers of customers.
    I have recently purchased some data from a data gathering company and its slightly different to the data I normally use. I'm trying to format it so that it is the same at my normal data.

    problem:

    Normal Data - 01626 439132
    New Data - 01626 439 132

    so old format was five characters, space, six characters.
    New format is five characters, space, three characters, space, three characters.

    My whole database has duplicates removed via a search for matching Phone numbers (as address and contact name is too unreliable) so you can see this is a big problem for me as i cant use the purchased data until i fix this issue

    Please find Attached 2 samples of data showing my problem in my worksheets

    any help is MUCH appreciated and I would gladly hire this bloke to rub food over himself saying your the best excel helper!
    https://www.fiverr.com/beautifulbaco...50408912432180

    broken data.xlsxfixed data.xlsx

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,733

    Re: noob stuck with automatically formatting Telephone numbers - REWARD FOR THE HELPER :D?

    You can use this formula in, say, H2, then copy down:

    =LEFT(SUBSTITUTE(F2," ",""),5)&" "&RIGHT(SUBSTITUTE(F2," ",""),LEN(SUBSTITUTE(F2," ",""))-5)

    Fix the values, then copy/paste over the original values in column F, and then you can delete column H.

    Please note that the STD code is not always 5 characters - think of calls to London, Manchester, Birmingham etc.

    Hope this helps.

    Pete

  3. #3
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: noob stuck with automatically formatting Telephone numbers - REWARD FOR THE HELPER :D?

    Try this

    =SUBSTITUTE(F2," ","",2)

    Row\Col
    F
    G
    H
    1
    Phone ID/STATUS
    2
    01237 423 516 PROSPECT 01237 423516
    3
    01237 431 207 PROSPECT 01237 431207
    4
    01237 431 244 PROSPECT 01237 431244
    5
    01237 431 246 PROSPECT 01237 431246
    6
    01237 431 254 PROSPECT 01237 431254
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  4. #4
    Registered User
    Join Date
    09-02-2014
    Location
    torquay
    MS-Off Ver
    2010
    Posts
    11

    Re: noob stuck with automatically formatting Telephone numbers - REWARD FOR THE HELPER :D?

    Hi Pete,
    That works a treat mate,
    any advice on how i can set it up for the smaller STD codes? would i need a new formula for each sized STD? as I can filter A-Z for areas and work around it that way?
    Cheers
    Matt

  5. #5
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: noob stuck with automatically formatting Telephone numbers - REWARD FOR THE HELPER :D?

    This works fine with your test data. Enter in H2 copy down. Then copy and paste values back into column F. Delete the column with the formula.

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  6. #6
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,733

    Re: noob stuck with automatically formatting Telephone numbers - REWARD FOR THE HELPER :D?

    Quote Originally Posted by Jerwood View Post
    ... any advice on how i can set it up for the smaller STD codes? ...
    Well, there are also longer STD codes as well - some of 6 digits and even some of 7 (mainly Northern Ireland and remote areas of Scotland).

    I just thought I would point it out to you. Their importance will depend on how your existing database treats these numbers - if they are always 5 digits followed by a space followed by the other numbers, then the variable-length codes will make no difference.

    Hope this helps.

    Pete

+ 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. [SOLVED] noob stuck with moving/deleting multiple peices of data
    By Jerwood in forum Excel General
    Replies: 10
    Last Post: 09-02-2014, 02:09 PM
  2. Replies: 9
    Last Post: 02-04-2011, 06:14 AM
  3. telephone numbers
    By bella18 in forum Excel General
    Replies: 1
    Last Post: 04-19-2010, 11:09 AM
  4. Formatting telephone numbers as text
    By ozziedave in forum Excel General
    Replies: 2
    Last Post: 05-28-2007, 03:16 PM
  5. Formatting telephone numbers?
    By MnO in forum Excel General
    Replies: 2
    Last Post: 01-17-2007, 08:06 AM

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