+ Reply to Thread
Results 1 to 4 of 4

Get the word before the last one

  1. #1
    Registered User
    Join Date
    02-14-2013
    Location
    brazil
    MS-Off Ver
    Excel 2003
    Posts
    3

    Get the word before the last one

    Hello everybody,
    i have this code that i get the last word of a cell, i wish i could get the word before the last one...but i'm having problems to get it...could anyone help please?

    Please Login or Register  to view this content.
    Last edited by JBeaucaire; 02-14-2013 at 11:43 AM. Reason: Corrected thread title to topic only, please take a moment and read the forum rules.

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

    Re: Help With a Code

    This works

    =TRIM(LEFT(RIGHT(SUBSTITUTE(A1," ", REPT(" ",100)),200),100))

    Source: http://www.mrexcel.com/forum/excel-q...rd-string.html
    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
    Registered User
    Join Date
    02-14-2013
    Location
    brazil
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Help With a Code

    Thank you so much man, you helped me a lot (=
    this is solved.

  4. #4
    Registered User
    Join Date
    02-14-2013
    Location
    brazil
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Help With a Code

    Thank you so much man, you helped me a lot (=
    this is solved.

+ 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