=RIGHT(A1,LEN(A1)-SEARCH("ì",SUBSTITUTE(A1,".","ì",LEN(A1)-LEN(SUBSTITUTE(A1,".","")))))
Here is how this can be acheived:
Steps: 1. Find out the number of times the separator occurs. This can be acheived by finding the difference in length between the orginal text and the text after removing the separator character. LEN(A1)-LEN(SUBSTITUTE(A1,".",""))
2. Replace the last occurrence of the separator with a special character, say "ì". SUBSTITUTE(A1,".","ì",LEN(A1)-LEN(SUBSTITUTE(A1,".","")))
3. Find the location of the special character, "ì" SEARCH("ì",SUBSTITUTE(A1,".","ì",LEN(A1)-LEN(SUBSTITUTE(A1,".",""))))
4. Select the text that falls on the right side of the location found in #3 RIGHT(A1,LEN(A1)-SEARCH("ì",SUBSTITUTE(A1,".","ì",LEN(A1)-LEN(SUBSTITUTE(A1,".","")))))
-Use some other special character if the text already contains "ì"
-The token separator here is "." (useful when separating test names from the table in test results).
Tuesday, December 15, 2009
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment