+ Reply to Thread
Results 1 to 4 of 4

pull numbers from text - trim text portion

  1. #1
    Forum Contributor
    Join Date
    01-18-2016
    Location
    OBX NC
    MS-Off Ver
    Office 2013
    Posts
    153

    pull numbers from text - trim text portion

    In cell a96 I have "$82 Million Cash Value $51.4 Million"

    I need b96 to show 82000000 which i can do with =VALUE(TRIM(LEFT(A69,LEN(A69)-33)))*1000000
    but am concerned that may not always work as I never know the digit count thus throwing it all off.

    I also need c96 to show 51400000 - and again same concern.....

    The text 'Million Cash Value' in middle and 'Million' at the end end will always be there....
    Any suggestions?

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

    Re: pull numbers from text - trim text portion

    Try in B96:
    Please Login or Register  to view this content.
    C96:
    Please Login or Register  to view this content.
    Quang PT

  3. #3
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: pull numbers from text - trim text portion

    Enter in B96 and copy across to C96
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    v A B C
    95
    96 $82 Million Cash Value $51.4 Million 82000000 51400000
    Last edited by AlKey; 11-11-2017 at 09:48 AM.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  4. #4
    Forum Contributor
    Join Date
    01-18-2016
    Location
    OBX NC
    MS-Off Ver
    Office 2013
    Posts
    153

    Re: pull numbers from text - trim text portion

    Both of your answers worked.... Looks like now I will be looking into the search and rept commands.... thank you so much!

+ 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. [SOLVED] VBA code to pull numbers from a text
    By cinstanl in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-18-2016, 02:24 PM
  2. Pull in cells with text and numbers
    By bwiebe in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-16-2016, 04:56 PM
  3. Macro for trim forumla/ convert text to numbers
    By Peep_Show_Fan in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-30-2015, 09:37 AM
  4. Pull just numbers out of text
    By bluerog in forum Excel General
    Replies: 6
    Last Post: 02-24-2012, 09:48 PM
  5. trim text from numbers
    By wtcamb in forum Excel General
    Replies: 4
    Last Post: 04-19-2011, 05:26 PM
  6. Replies: 8
    Last Post: 05-09-2008, 09:59 AM
  7. Replies: 3
    Last Post: 12-20-2007, 03:50 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