+ Reply to Thread
Results 1 to 6 of 6

Custom format UK telephone numbers/UK post codes

  1. #1
    Registered User
    Join Date
    02-06-2013
    Location
    Nottingham
    MS-Off Ver
    Excel 365
    Posts
    61

    Custom format UK telephone numbers/UK post codes

    Hi, I am really hoping someone can help me.

    I would like help with a custom format for Excel 2003.

    I need telephone numbers to be entered like this (one of three possible inputs)

    0123 1234567 if area code is only 4 digits followed by 7 digits, (11 total)

    01234 123456 if area code is 5 digits followed by 6 numbers, (11 total)

    and if 01234 12345 if area code is 5 digits but only followed by 5, (10 total)

    All three are possible options and I need to allow this so that when the numbers are entered like this: 01231234567 it changes to: 0123 1234567 etc.

    I've tried doing this formula which I found in another thread: [>999999999]0000 0000000;[>99999999]00000 000000 obviously unsuccessfully, however the first part does work.

    When I couldn't get it to work I have temporarily changed it to "[>99999999]00000 000000" so all area codes are 5 digits...but this isn't really what I need.

    I am hoping also to make a spin off from this for UK post codes but I can not find a custom format which allows for letters and digits, the post codes aren't as complex, it's either NG1 1AB or NG12 1AB so not much variation...any help on that also would be welcome, I don't mind if custom format is not the way to go with this one.


    Thank you in advance
    Last edited by Ju1cy; 02-11-2013 at 08:51 AM. Reason: Couldn't read the coloured font...too pale

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Custom format UK telephone numbers/UK post codes

    duplicate with below again!
    Last edited by martindwilson; 02-11-2013 at 09:02 AM.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Custom format UK telephone numbers/UK post codes

    0123 1234567
    01234 123456
    how would any custom format know the difference? they could be equally be
    01231 234567
    0123 4123456

  4. #4
    Registered User
    Join Date
    02-06-2013
    Location
    Nottingham
    MS-Off Ver
    Excel 365
    Posts
    61

    Re: Custom format UK telephone numbers/UK post codes

    Hi Martindwilson,

    I don't know but I am open to suggestions, if you think hyphens should be used I am open to any suggestion.

  5. #5
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Custom format UK telephone numbers/UK post codes

    i dont think it can be done

  6. #6
    Registered User
    Join Date
    02-06-2013
    Location
    Nottingham
    MS-Off Ver
    Excel 365
    Posts
    61

    Re: Custom format UK telephone numbers/UK post codes

    Oh pants, ok, thanks anyway

+ 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