+ Reply to Thread
Results 1 to 4 of 4

Extracting numbers from inconsistent text strings

  1. #1
    Registered User
    Join Date
    06-13-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2007
    Posts
    5

    Extracting numbers from inconsistent text strings

    Hi,

    I have tried to google for more information and tried to work this out on my own but I couldn't do it.

    I am asking for help here please.

    I am trying to come up with a formula that can extract the result numbers from the following strings in individual cells.

    • <div id=resultStats>1 result<nobr> (0.15 seconds) </nobr>
    • <div id=resultStats>About 106 results<nobr> (0.29 seconds) </nobr>
    • <div id=resultStats>About 2,320 results<nobr> (0.38 seconds) </nobr>
    • <div id=resultStats>About 390,000,000 results<nobr> (0.26 seconds) </nobr>


    As you can see, only "<div id=resultStats>" is consistent.

    The text "About" may not always shows up and to make things worse, the numbers will be returned with "thousands separator" and the text "results" maybe singular at time.

    The numbers in bold are the numbers which I would like to be extracted.

    I would really appreciate it if you can help me, I have spent many hours trying to figure this out.

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Extracting numbers from inconsistent text strings

    Hi Netguru,

    Would suggest you to look into below link of our forum:-

    http://www.excelforum.com/excel-new-...d-numbers.html

    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

  3. #3
    Registered User
    Join Date
    06-13-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Extracting numbers from inconsistent text strings

    Thank you DILIPandey, I have looked at your post but it is too hard for me. I am going crazy...

  4. #4
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,361

    Re: Extracting numbers from inconsistent text strings

    it's a lookup maybe the old one as Dilip's post above.


    =LOOKUP(99^99,--("0"&MID(A1,MIN(SEARCH({0,1,2,3,4,5,6,7,8,9},A1&"0123456789")),ROW($1:$10000))))
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

+ 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