Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
BC
 
Posts: n/a
Default How to get the right-most word from TEXT

Please let me know if there is a easy way to do this:

Cat Dog monkey = monkey
This is a test = test
I love you = you

Thanks.

BC
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ron Coderre
 
Posts: n/a
Default How to get the right-most word from TEXT

Try this:

For text, including spaces, in A1
B1: =RIGHT(A11,LEN(A11)-LOOKUP(LEN(A11),FIND("
",A11,ROW(INDEX($A:$A,1,1):INDEX($A:$A,LEN(A11),1) ))))

That formula pulls the text after the last space from A1.

Does that help?
***********
Regards,
Ron

XL2002, WinXP


"BC" wrote:

Please let me know if there is a easy way to do this:

Cat Dog monkey = monkey
This is a test = test
I love you = you

Thanks.

BC

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ron Coderre
 
Posts: n/a
Default How to get the right-most word from TEXT

Some typos in that formula:

B1: =RIGHT(A11,LEN(A11)-LOOKUP(LEN(A11),FIND("
",A11,ROW(INDEX($A:$A,1,1):INDEX($A:$A,LEN(A11),1) ))))

The refs to A11 should be to A1

Correct formula:
B1: =RIGHT(A1,LEN(A1)-LOOKUP(LEN(A1),FIND("
",A1,ROW(INDEX($A:$A,1,1):INDEX($A:$A,LEN(A1),1))) ))

(Sorry for any confustion)
***********
Regards,
Ron

XL2002, WinXP


"Ron Coderre" wrote:

Try this:

For text, including spaces, in A1
B1: =RIGHT(A11,LEN(A11)-LOOKUP(LEN(A11),FIND("
",A11,ROW(INDEX($A:$A,1,1):INDEX($A:$A,LEN(A11),1) ))))

That formula pulls the text after the last space from A1.

Does that help?
***********
Regards,
Ron

XL2002, WinXP


"BC" wrote:

Please let me know if there is a easy way to do this:

Cat Dog monkey = monkey
This is a test = test
I love you = you

Thanks.

BC

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to export text from Excel to Word Rock Excel Discussion (Misc queries) 2 May 14th 06 12:32 AM
How to export text from Excel to Word Rock New Users to Excel 2 May 14th 06 12:32 AM
Text disappears when word wrap is used Mark_GS1CA Excel Discussion (Misc queries) 12 October 17th 05 12:44 PM
Upside-down text in Word and Excel. James Excel Discussion (Misc queries) 2 June 19th 05 08:53 PM
Text not copying as text from Word to Excel 2003 Christine Excel Discussion (Misc queries) 4 March 3rd 05 11:33 PM


All times are GMT +1. The time now is 12:59 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"