ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   How to get the right-most word from TEXT (https://www.excelbanter.com/excel-worksheet-functions/92687-how-get-right-most-word-text.html)

BC

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

Ron Coderre

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


Ron Coderre

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



All times are GMT +1. The time now is 10:22 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com