I need a rough and ready way to parse out Last Name in an excel file where the number of words in the name field is unknown, but I want to get the last one. This will then enable me to sort by surname.
For example "Robert Louis Stevenson" becomes "Stevenson"
"Robert Ludlum" becomes "Ludlum" and "Simenon" remains "Simenon"
I'm not worried about odd ones like "van de staadt"
I have managed it as per the following link Surname but it's not very elegant.
This must be a common problem and I wonder how others have solved it?
For example "Robert Louis Stevenson" becomes "Stevenson"
"Robert Ludlum" becomes "Ludlum" and "Simenon" remains "Simenon"
I'm not worried about odd ones like "van de staadt"
I have managed it as per the following link Surname but it's not very elegant.
This must be a common problem and I wonder how others have solved it?