+ Reply to Thread
Results 1 to 5 of 5

how extract phone number from middle of the text

  1. #1
    Registered User
    Join Date
    02-22-2013
    Location
    india
    MS-Off Ver
    Excel 2003
    Posts
    49

    how extract phone number from middle of the text

    Hi,
    pls. help how to extact the phone number from middle of the text.

    example

    Pittsburgh, PA 15213 Phone: 412-647-2205 Email: [email protected] Fax: 412-647-5119 View Faculty Profile Faculty Research Interests Project Page : Alexander J.

    Denver, Colorado 720-880-3109 - Paulene Ifeanyi, W Floyd Dr, Denver, Colorado 720-880-3527 - Elyse Schlosser, E Center Ave, Denver, Colorado 720-880-7546 -

    Pittsburgh, PA 15213 Phone: 412-647-2205 Email: [email protected] Fax: 412-647-5119 View Faculty Profile Faculty Research Interests Project Page : Alexander J

    Phone: 800-343-4499 Fax: 800-351-5073 Email: [email protected]. Europe, Africa, and the Middle East. John Wiley **Sons Ltd European Distribution

    Andrew Douglas Vice Dean for Faculty 410-516-6771 [email protected] Wyman 412. Daniel Horn Assistant Dean – Engineering for Professionals 410-516-8943 John

    Deborah L. Corpus. Partner. Email. [email protected]. Phone. 216-579-1700 ext. 240. Deborah Corpus is a partner at Pearne **Gordon LLP. She has extensive

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: how extract phone number from middle of the text

    What result are you expecting from the second example "Denver Colorado...." ?
    There are three potential numbers
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: how extract phone number from middle of the text

    This will extract the number if the phrase "Phone" is found in the data

    =IF(ISNUMBER(FIND("Phone",A1)),MID(A1,FIND("Phone",A1)+7,12),"")

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

    Re: how extract phone number from middle of the text

    I don't know where your records start or end but there are when I copied your examples into Excel rows that had multiple telephone numbers. This formula will extract the first telephone number in each row excluding extension numbers but not any of the other telephone numbers. A further clarification of the data format would be appreciated to facilitate giving a better solution. For example: are there really multiple telephone numbers in a row like appears in your example row 2?

    The first part of this formula is nearly identical to that of Special-K and works the same except I used Search instead of Find. SEARCH is not case sensitive while FIND is case sensitive. This isn't a consideration when finding numbers as there isn't an upper or lower case number.

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by newdoverman; 07-07-2015 at 11:10 AM.
    <---------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

  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: how extract phone number from middle of the text

    The formula that I gave can be shortened to the following which finds the starting point of the first number in the text string and returns 12 values. This of course will not work if there is some other number before the telephone number if a telephone number isn't found with "phone" preceding it:

    Formula: copy to clipboard
    Please Login or Register  to view this content.

+ 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. Extract number in the middle of text (check from right-to-left)
    By diywho in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-20-2012, 05:21 AM
  4. Extract number in middle of cell
    By Jason Morin in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-06-2005, 04:05 AM
  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