+ Reply to Thread
Results 1 to 12 of 12

Extract Following Format Phone Number

  1. #1
    Registered User
    Join Date
    04-03-2014
    Location
    Bangalore
    MS-Off Ver
    Excel 2007
    Posts
    44

    Extract Following Format Phone Number

    Hi,

    I am looking for excel formula that extracts Phone numbers from column that contain below format.

    Example:
    Format: ##-#### ####
    Phone No: 45-5879 2647

    Thanks.
    Last edited by Mohanmoni; 02-18-2015 at 10:04 PM. Reason: Edit

  2. #2
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,659

    Re: Extract Following Format Phone Number

    What is the original text in column that contains phone no?
    i.e "My number is 45-9999 4444 pls call me"
    Quang PT

  3. #3
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2505 Win 11
    Posts
    24,754

    Re: Extract Following Format Phone Number

    What do you mean by extract? What do you want to happen with the cells that meet this condition?
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  4. #4
    Forum Expert sourabhg98's Avatar
    Join Date
    10-22-2014
    Location
    New Delhi, India
    MS-Off Ver
    Excel 2007, 2013
    Posts
    1,899

    Re: Extract Following Format Phone Number

    Hello
    I think you need to format the number in the given form
    Try this,,,
    Attached Files Attached Files
    Happy to Help

    How to upload excel workbooks at this forum - http://www.excelforum.com/the-water-...his-forum.html

    "I don't get things easily, so please be precise and elaborate"

    If someone's post has helped you, thank by clicking on "Add Reputation" below the post.
    If your query is resolved please mark the thread as "Solved" from the "Thread Tools" above.

    Sourabh

  5. #5
    Registered User
    Join Date
    04-03-2014
    Location
    Bangalore
    MS-Off Ver
    Excel 2007
    Posts
    44

    Re: Extract Following Format Phone Number

    Here is the example, In below example we can see Phone Number, Text and Special Characters. Now in A2:A9 column you can see
    "###-########" (Phone Number Format), I have bulk data in same format. Now I want formula that search & pull phone numbers from left side that contain the same format, As I shown in result.
    Attached Images Attached Images

  6. #6
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 365
    Posts
    2,406

    Re: Extract Following Format Phone Number

    Don't put an image, try to upload your sample workbook to attract solver see your post, click "Go Advanced" button and find Paperclip button to attach your file.

  7. #7
    Forum Expert sourabhg98's Avatar
    Join Date
    10-22-2014
    Location
    New Delhi, India
    MS-Off Ver
    Excel 2007, 2013
    Posts
    1,899

    Re: Extract Following Format Phone Number

    Hi
    I have made a formula...

    Please Login or Register  to view this content.
    this is an ARRAY formula
    So put it with Ctrl+Shift+Enter in the cell instead of just enter as we usually do...

    Put this is B2 and copy down
    It should work for most of your cases...although there may be some exceptions

    Hope this helps!!

  8. #8
    Registered User
    Join Date
    04-03-2014
    Location
    Bangalore
    MS-Off Ver
    Excel 2007
    Posts
    44

    Re: Extract Following Format Phone Number

    Thanks for your Help Sourabhg98

  9. #9
    Forum Expert sourabhg98's Avatar
    Join Date
    10-22-2014
    Location
    New Delhi, India
    MS-Off Ver
    Excel 2007, 2013
    Posts
    1,899

    Re: Extract Following Format Phone Number

    You are welcome!!
    Please mark the thread as solved and you can add to my reputation to say thanks!!
    Regards
    Sourabh

  10. #10
    Registered User
    Join Date
    04-03-2014
    Location
    Bangalore
    MS-Off Ver
    Excel 2007
    Posts
    44

    Re: Extract Following Format Phone Number

    But still I am not getting exact result what I am looking for!!!

    This pulls all the phone numbers from Left Side like...90352 22222, I need only phone numbers that having in "000-00000000" Format.
    Last edited by Mohanmoni; 02-20-2015 at 12:44 PM. Reason: edit

  11. #11
    Forum Expert sourabhg98's Avatar
    Join Date
    10-22-2014
    Location
    New Delhi, India
    MS-Off Ver
    Excel 2007, 2013
    Posts
    1,899

    Re: Extract Following Format Phone Number

    Yes as I told there may be some exceptions...please tell for what values this is not working....maybe I can improve it further but it seems to be difficult

  12. #12
    Forum Expert sourabhg98's Avatar
    Join Date
    10-22-2014
    Location
    New Delhi, India
    MS-Off Ver
    Excel 2007, 2013
    Posts
    1,899

    Re: Extract Following Format Phone Number

    This formula would pull the number from the left side only when desired format is not found

    By the way I hope you used it as an array formula

+ 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. Extract phone number from text
    By db3712 in forum Excel General
    Replies: 4
    Last Post: 03-14-2013, 11:18 AM
  2. Extract & Copy a phone number from text
    By alpha.martinez in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 06-02-2012, 01:47 PM
  3. Format a Phone Number
    By scotfitz in forum Excel General
    Replies: 4
    Last Post: 12-23-2009, 07:01 PM
  4. how do I add phone number format as a permanent custom format?
    By frustratedagain in forum Excel General
    Replies: 3
    Last Post: 02-03-2006, 11:52 PM
  5. Extract phone number front block of text
    By Tech in forum Excel General
    Replies: 6
    Last Post: 08-08-2005, 12:05 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