+ Reply to Thread
Results 1 to 7 of 7

Seperate last word from text

  1. #1
    Registered User
    Join Date
    05-02-2012
    Location
    Sweden
    MS-Off Ver
    Excel 2010
    Posts
    3

    Seperate last word from text

    Hi,
    I have a column of text. I need to seperate this column in two columns, one holding just the last word and the other holding all the other string.
    How is theat possible?
    Thank you in advance

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,167

    Re: Seperate last word from text

    Do you have some sample data that you can show?
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: Seperate last word from text

    Try these

    B1: =LEFT(A1,FIND(CHAR(1),SUBSTITUTE(A1," ",CHAR(1),LEN(A1)-LEN(SUBSTITUTE(A1," ",""))))-1)
    C1: =SUBSTITUTE(A1,B1&" ","")

  4. #4
    Registered User
    Join Date
    05-02-2012
    Location
    Sweden
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Seperate last word from text

    Hi,
    B1 is giving a True answer.
    Should it be the answer?

  5. #5
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: Seperate last word from text

    What is in A1?

  6. #6
    Registered User
    Join Date
    05-02-2012
    Location
    Sweden
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Seperate last word from text

    The text the I want to seperate.

  7. #7
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: Seperate last word from text

    I know that, I ask what that value is that returns TRUE.

+ 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