Hi there
Please can someone advise how I can grab the right-most text string after a space e.g.
North West London NW - I would want to grab 'NW'.
Many thanks
Hi there
Please can someone advise how I can grab the right-most text string after a space e.g.
North West London NW - I would want to grab 'NW'.
Many thanks
Try
=MID(A1,FIND("#",SUBSTITUTE(A1," ","#",LEN(A1)-LEN(SUBSTITUTE(A1," ",""))))+1,255)
Where A1 houses original string
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.
Thanks very much!!
With A1 containing text
This formula returns the text following the last space in that cell:
B1: =TRIM(VLOOKUP(" *",INDEX(RIGHT(" "&A1,ROW($A$1:INDEX($A:$A,LEN(" "&A1),1))),0),1,0))
Does that help?
Assuming your last "word" has less than 99 characters
=TRIM(RIGHT(SUBSTITUTE(TRIM(A1)," ",REPT(" ",99)),99))
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks