+ Reply to Thread
Results 1 to 6 of 6

Any Way To Extract Numbers From Text

Hybrid View

  1. #1
    Registered User
    Join Date
    02-18-2007
    MS-Off Ver
    Excel 2007 & 2003
    Posts
    25

    Any Way To Extract Numbers From Text

    please see attached file. Or Link below.

    I need an automated way to extract the dollar amount from B and then from C and put them into separate columns.
    So the dollar amount in column B is extracted out of the text and then put into a separate column. Then, the dollar amount in column C is extracted and put into a separate column.

    Kind Thanks,
    Eddie
    Attached Files Attached Files
    Last edited by JBeaucaire; 08-30-2012 at 10:30 PM.

  2. #2
    Banned User!
    Join Date
    10-14-2006
    Posts
    1,211

    Re: Any Way To Extract Numbers From Text

    =INT(LOOKUP(1E+100,--MID(SUBSTITUTE(SUBSTITUTE(B2,"/","x"),"per","x"),MIN(FIND({0,1,2,3,4,5,6,7,8,9},SUBSTITUTE(SUBSTITUTE(B2,"/","x"),"per","x")&"0123456789")),ROW(INDIRECT("1:99")))))

  3. #3
    Forum Contributor
    Join Date
    07-08-2009
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003
    Posts
    142

    Re: Any Way To Extract Numbers From Text

    Guys, do you have brain only on head or all over the body ? It is amzing !!!!!!!!

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Any Way To Extract Numbers From Text

    D2: =TRIM(LEFT(SUBSTITUTE(REPLACE(B2,1,MIN(SEARCH({0;1;2;3;4;5;6;7;8;9},B2&1234567890))-1,""), " ", REPT(" ", 99)),2))

    C2: =TRIM(SUBSTITUTE(SUBSTITUTE(LEFT(SUBSTITUTE(REPLACE(C2,1,MIN(SEARCH({0;1;2;3;4;5;6;7;8;9},C2&1234567890))-1,""), " ", REPT(" ", 99)),2),"/",""),".",""))

    Copy down.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  5. #5
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Any Way To Extract Numbers From Text

    I have marked this thread solved for you.
    In the future please select Thread Tools from the menu above and mark the thread as solved. Thanks.

  6. #6
    Registered User
    Join Date
    02-18-2007
    MS-Off Ver
    Excel 2007 & 2003
    Posts
    25

    Re: Any Way To Extract Numbers From Text

    indeed it is solved...thank you all so very much. y'all are awesome.
    Eddie

+ 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