+ Reply to Thread
Results 1 to 2 of 2

Mobile Number Formatting: E.164 standard

  1. #1
    Forum Contributor
    Join Date
    08-25-2015
    Location
    London
    MS-Off Ver
    MS 365
    Posts
    213

    Question Mobile Number Formatting: E.164 standard

    Hello all VBA Masters out there,

    I have a massive list of international mobile numbers that I would need to convert to the E.164 standard and import into a database.
    Unfortunately, during data capture process, there was no validation so I have numbers (and sometimes even letters) in my "mobile number" column.
    Some examples of the variations I have:

    79068*****
    07906 8*****
    +4479068*****
    +447906 8*****
    4479068*****
    07906-8*****
    004479068*****
    44.79068.*****
    zzzzazazaz (or any other letters)
    21.06.1985 (seems like birthdays)
    4.55E+65

    What I would like to do is cleanse this data using VBA in Excel 2010...unfortunately, this seems to be much more complex than expected

    The correct format would be:

    · E.164 standard:
    • Wiki overview: https://en.wikipedia.org/wiki/E.164
    • Examples (the ‘+’ is optional, and will be stripped out by our database if imported):
    • +4478123***** / 4478123*****
    • +177123***** ** / 177123*****
    • +3511123***** / 3511123*****
  2. o Example Regex for identifying E.164 numbers: http://stackoverflow.com/questions/6...-phone-numbers


  3. · The important points for importing to the database are:
    • o Leading 0’s should be stripped from the number / the database does not strip leading 0’s automatically
    • Example: If I was dialling the U.S. from the UK I would dial ‘00177251*****’. In our database this number should be imported as ‘177251*****’
    • o International dialling code is included as part of the number
    • o All invalid characters like brackets, full stops, spaces etc. should be stripped from the number


    I found two VBA scripts for this online, but I'm afraid both of them don't really do what I need and only reflect one country code (I'd have around 14 different country codes...)
    I'll try to paste them below if they are of any help? Maybe they can be tweaked...

    Hoping for your brain power and that anyone can help?

    Many thanks!!
    Mat

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
Reply With QuoteRegister To Reply

  • #2
    Forum Contributor
    Join Date
    08-25-2015
    Location
    London
    MS-Off Ver
    MS 365
    Posts
    213

    Re: Mobile Number Formatting: E.164 standard

    Hello there,

    Any chance someone can help with this? Really struggling and unfortunately not an expert in this field.
    Would appreciate any help!

    Many thanks,
    Mat

  • + 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. Conditional Formatting Alternative for Mobile
      By kbenoit001 in forum Excel Formulas & Functions
      Replies: 4
      Last Post: 05-01-2016, 02:13 PM
    2. [SOLVED] How to make a pair of a mobile number
      By ravanreturn in forum Excel General
      Replies: 2
      Last Post: 03-08-2014, 01:21 PM
    3. [SOLVED] Random Formula for Mobile Number
      By SaleenaKhan in forum Excel Formulas & Functions
      Replies: 4
      Last Post: 02-11-2013, 09:09 AM
    4. Can not save mobile number of 12 digits in CSV
      By Yogi28 in forum Excel General
      Replies: 4
      Last Post: 08-22-2012, 01:33 PM
    5. Search for corresponding mobile phone number using email address
      By davisraye in forum Excel Programming / VBA / Macros
      Replies: 4
      Last Post: 06-21-2012, 10:52 AM
    6. Excel calculating mobile number value
      By john_prince in forum Excel General
      Replies: 3
      Last Post: 02-18-2010, 11:38 AM
    7. Replies: 1
      Last Post: 02-03-2005, 08:45 PM

    Tags for this Thread

    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