+ Reply to Thread
Results 1 to 5 of 5

Extract phone number from text

  1. #1
    Registered User
    Join Date
    08-17-2010
    Location
    Springfield, IL
    MS-Off Ver
    Excel 2003
    Posts
    12

    Extract phone number from text

    Good morning,
    This should be easy for a guru which I'm not. I'm trying to pull phone numbers out of a column of text data. The format of the phone is always ###-###-####. Any help will be appreciated. Thank you.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Extract phone number from text

    if all the characters are numbers, you can probably use =substitute()...

    =SUBSTITUTE(A1,"-","")
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    08-17-2010
    Location
    Springfield, IL
    MS-Off Ver
    Excel 2003
    Posts
    12

    Re: Extract phone number from text

    My info is address related. City, State, Zip, etc. The only thing that discerns my phone numbers are the dashes. Your formula just removed the dashes from my phone numbers. I appreciate your idea regardless. Thanks.

  4. #4
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,156

    Re: Extract phone number from text

    hi db3712, perhaps:
    =MID(A1,SEARCH("???-???-????",A1),12)

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  5. #5
    Registered User
    Join Date
    08-17-2010
    Location
    Springfield, IL
    MS-Off Ver
    Excel 2003
    Posts
    12

    Re: Extract phone number from text

    That did it. Thank you very much.

+ 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