+ Reply to Thread
Results 1 to 3 of 3

Pulling out last words from the end of a text string - dynamically

  1. #1
    Forum Contributor
    Join Date
    11-13-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    279

    Pulling out last words from the end of a text string - dynamically

    Hi,

    I was wondering if anyone has a formula which makes it possible to pull out the last x number of words, separated by a space.

    It would be very cool if the number of words from the right to be pulled could easily be decided by an input. e.g. typing 1 into a cell (or as a column heading) would mean we would pull out the last word (1st word from the right).

    I think using the search function would be the best way to do it, but I can't seem to get this to work left to right instead of right to left.

    Thanks folks for anyone who tries to crack this.

    File attached
    Attached Files Attached Files

  2. #2
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Pulling out last words from the end of a text string - dynamically

    davidx,

    Using your provided workbook, on sheet 'After' cell L3 and copied over and down to cell O14:
    Please Login or Register  to view this content.
    [EDIT]:
    And if you want to remove the commas:
    Please Login or Register  to view this content.
    Hope that helps,
    ~tigeravatar

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Forum Contributor
    Join Date
    11-13-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    279

    Re: Pulling out last words from the end of a text string - dynamically

    thank you so much, that is really sensational stuff!!!!!!!!!!!!!!

+ 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