Thanks Thanks:  0
Likes Likes:  0
Results 1 to 3 of 3

Thread: How do I extract the last word in a text string?

  1. #1
    New Member
    Join Date
    Jan 2007
    Location
    Nottingham
    Posts
    28
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Lightbulb How do I extract the last word in a text string?

    Hi,

    I have a string of information in a field and I want to extract the last word into another cell.
    The values in the field are separated by spaces, so to extract the first bit of info I am using FIND to locate the first space then using LEFT with the result of the FIND-1. So this is simple.

    I'm not finding it so simple to do this the other way round to pull out the right hand side of the text to do the equivalent for the last word.

    I'm sure there's an easy way to do this, but as yet I haven't found it.

    Any ideas anyone?

    Thanks in advance.

  2. #2
    MrExcel MVP
    Moderator
    Inactive
    Richard Schollar's Avatar
    Join Date
    Apr 2005
    Location
    UK
    Posts
    23,701
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)

    Default Re: How do I extract the last word in a text string?

    Hi

    =TRIM(RIGHT(SUBSTITUTE(A1," ",REPT(" ",100)),100))
    Richard Schollar

    Using xl2013

  3. #3
    New Member
    Join Date
    Jan 2007
    Location
    Nottingham
    Posts
    28
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Smile Re: How do I extract the last word in a text string?

    Fabulous.

    Thank you so much.

Some videos you may like

User Tag List

Tags for this Thread

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •