+ Reply to Thread
Results 1 to 6 of 6

Need to print values after a certain text-string

  1. #1
    Registered User
    Join Date
    10-09-2015
    Location
    Chicago
    MS-Off Ver
    2007
    Posts
    2

    Need to print values after a certain text-string

    Hi All,
    First time poster. I have a cell with the following text string:
    01/20/15 01 PERSON ITEM MONTH15 MISC. US 4,140.99


    I have thousands of these, and need to simply print 4,140.99 in a new column. I tried using the =RIGHT function to print the right most characters, but that doesn't work, because some dollar amounts are only 25.00 and some are 50,000. Is there a function I can use that will only print whatever comes after the MISC. US text?

    Thanks

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

    Re: Need to print values after a certain text-string

    This works
    =TRIM(SUBSTITUTE(RIGHT(SUBSTITUTE(A1," ",REPT(" ",500)),500)," ",""))+0

    It expects the value to be the last piece of data in the string and must be preceded with a space.
    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
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: Need to print values after a certain text-string

    Can you provide more than 1 sample. Perhaps 10 samples?

  4. #4
    Registered User
    Join Date
    10-09-2015
    Location
    Chicago
    MS-Off Ver
    2007
    Posts
    2

    Re: Need to print values after a certain text-string

    Quote Originally Posted by jiejenn View Post
    can you provide more than 1 sample. Perhaps 10 samples?
    01/20/15 01 person item month15 misc. Us 4,140.99
    01/20/15 01 person item month15 misc. Us 18,140.99
    01/22/15 01 person item month15 misc. Us .01
    01/20/15 01 person exchange month15 misc. Us 300.25
    01/24/15 01 person item month15 misc. Us 9,140.99
    01/25/15 01 person item month15 misc. Us 335,140.99

  5. #5
    Forum Contributor
    Join Date
    08-25-2015
    Location
    Near Pittsburgh, PA
    MS-Off Ver
    Excel 2013
    Posts
    152

    Re: Need to print values after a certain text-string

    You could break up the data using TEXT-TO-COLUMNS and end up with all numbers in a single column.

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

    Re: Need to print values after a certain text-string

    IF your actual text is as given, this will extract the currency amount from the right of the cell. I have the text strings in column A starting at A1 and the formula in B1 and filled down. Format as currency if desired.
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    A
    B
    1
    01/20/15 01 person item month15 misc. Us 4,140.99
    $4,140.99
    2
    01/20/15 01 person item month15 misc. Us 18,140.99
    $18,140.99
    3
    01/22/15 01 person item month15 misc. Us .01
    $0.01
    4
    01/20/15 01 person exchange month15 misc. Us 300.25
    $300.25
    5
    01/24/15 01 person item month15 misc. Us 9,140.99
    $9,140.99
    6
    01/25/15 01 person item month15 misc. Us 335,140.99
    $335,140.99
    <---------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

+ 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. Replies: 2
    Last Post: 11-18-2014, 06:26 AM
  2. Replies: 4
    Last Post: 07-21-2014, 10:33 AM
  3. [SOLVED] Find partial text string within another text string return original text into cell.
    By mikey42979 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 06-17-2013, 02:58 PM
  4. Sum values from a text string
    By Jonsocks in forum Excel General
    Replies: 5
    Last Post: 08-12-2012, 02:59 PM
  5. Search text string for range of text values - return match
    By crugg in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-03-2010, 09:55 AM
  6. [SOLVED] Match row that contains text text string; list associated values from pivot table
    By ACurtis802 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-29-2009, 07:50 PM
  7. [SOLVED] Write string to text file and print?
    By Ed in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-14-2005, 04: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