this code only for your reference.
I think your data is too complicated to solve
![]()
=RIGHT(A9,LEN(A9)-FIND(" ",A9))
this code only for your reference.
I think your data is too complicated to solve
![]()
=RIGHT(A9,LEN(A9)-FIND(" ",A9))
Hi there,
Put the following formula (assuming the data starts at row 2 - change as required) in the first available blank column next your data fill down as necessary and then sort the entire data range by it. You can then delete the column if you wish:
=RIGHT(SUBSTITUTE(A2," ","~",LEN(A2)-LEN(SUBSTITUTE(A2," ",""))),LEN(SUBSTITUTE(A2," ","~",LEN(A2)-LEN(SUBSTITUTE(A2," ",""))))-FIND("~",(SUBSTITUTE(A2," ","~",LEN(A2)-LEN(SUBSTITUTE(A2," ",""))))))
Note this formula was created by "Datsmart" from this thread.
HTH
Robert
Last edited by Trebor76; 09-09-2008 at 12:50 AM.
how does that formula deal with da vinci which is a surname but with a gap in it?, the code only returns vinci
Last edited by martindwilson; 09-09-2008 at 04:33 AM.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks