Dear all,
Please help me to extract the last word from the cells of a certain column.
File attached
Senjuti
Last edited by senjuti.sarkar; 02-10-2012 at 03:47 AM.
Here, try this:
=TRIM(RIGHT(SUBSTITUTE(B2," ",REPT(" ",255)),150))
"Relax. What is mind? No matter. What is matter? Never mind!"
Hi,
try:
Regards=TRIM(RIGHT(SUBSTITUTE(B2," ",REPT(" ",100)),50))
Edit: Sorry Zbor: same answer. Regards
Last edited by CANAPONE; 02-10-2012 at 03:05 AM.
-----------------------------------------------------
At Excelforum, you can say "Thank you!" by clicking the star icon below the post.
Please, mark your thread [SOLVED] if you received your answer.
Forum rules: http://www.excelforum.com/forum-rule...rum-rules.html
IT WORKED TO WELL
Thanks a lot,
But how could I remove the space coming in the resulting cell?
How do you mean? There is no space in resulting cell.
"Relax. What is mind? No matter. What is matter? Never mind!"
But in mine sheet its resulting with a space in front.
That's because you don't have spaces but some other characters.
Here, this should work for you:
=TRIM(RIGHT(SUBSTITUTE(B2,CHAR(160),REPT(" ",255)),150))
Edit: but that won't work for other data...
In that case first copy one character from your result that is not trimed.
Select B column and replace (ctrl+H) that character with space.
Then it will work.
Last edited by zbor; 02-10-2012 at 03:38 AM.
"Relax. What is mind? No matter. What is matter? Never mind!"
Other option with one formula is this:
=TRIM(RIGHT(SUBSTITUTE(SUBSTITUTE(B2,CHAR(160)," ")," ",REPT(" ",255)),150))
"Relax. What is mind? No matter. What is matter? Never mind!"
ohh....its nicely worked ..thanks Zbor.
Regards
Senjuti
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks