Results 1 to 13 of 13

Extract Last Two Words of a string

Threaded View

  1. #1
    Registered User
    Join Date
    01-10-2011
    Location
    San Antonio, United States
    MS-Off Ver
    Excel 2003
    Posts
    42

    Extract Last Two Words of a string

    hi,

    i need to extract only last two words of string in excel. Currently i am using the following function to do so. But unfortunately, its not extracting for all the strings. Majority of the strings i didnt get the results while for very few of them got the result. Can you please help why is this happening?

    =TRIM(RIGHT(SUBSTITUTE(A1," ",REPT(" ",60)),120))
    I have attached file where i have shown the result set. Also i have highlighted which one is correct and which one is not.

    Thanks in advance for your help.

    Thanks,
    Vijay
    Attached Images Attached Images

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. VBA - Extract Words from Text String
    By NKRA in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-23-2013, 11:18 AM
  2. Extract n words from string
    By holmes123 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-07-2012, 10:29 PM
  3. Extract a string of text between certain words
    By delboy2405 in forum Excel General
    Replies: 3
    Last Post: 01-17-2012, 12:40 AM
  4. UDF to extract first three words from string
    By stodge in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-24-2011, 07:25 AM
  5. Extract last two words from string
    By dimid in forum Excel General
    Replies: 5
    Last Post: 11-28-2008, 11:07 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