|  

» Extracting last Word

Problem:

Creating a formula to retrieve the last word from a string
Solution:

Using the MID, FIND, SUBSTITUTE and LEN text category functions, as follows:
=MID(A2,FIND(""$"",SUBSTITUTE(A2,"" "",""$"",LEN(A2)-LEN(SUBSTITUTE(A2,"" "",""""))))+1,255)

Example:

String________________Last Word
Microsoft Excel_______Excel
abc defgh ijk_________ijk
last word only________only


Screenshot // Extracting last Word
Extracting last Word
Rate This Tip
12 34 5
Rating: 3.72     Views: 10915
No comments have been submitted.
Click here to post comment
For Registered Users
Name
Comment Title
Comments