In excel suppose I have a text cell which is of the following format:
A->BBB--->CCC---->DDDD
i want to use a formula to return the last part "DDDD"
Thanks in advance.
In excel suppose I have a text cell which is of the following format:
A->BBB--->CCC---->DDDD
i want to use a formula to return the last part "DDDD"
Thanks in advance.
Last edited by NBVC; 09-23-2011 at 02:07 PM.
If it's always the last 4 characters you want then, if your string is in cell A1, in another cell put =RIGHT(A1,4)
If you want the section after the last > that's a bit more complicated.
OK, again with the data in A1 try ... =MID(A1,FIND("~",SUBSTITUTE(A1,">","~",LEN(A1)-LEN(SUBSTITUTE(A1,">",""))))+1,255)
Try:
=TRIM(LEFT(RIGHT(SUBSTITUTE(A1,">", REPT(" ",LEN(A1))),LEN(A1)),LEN(A1)))
Where there is a will there are many ways.
If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner
Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks