I searched for the answer but did not find what I was looking for so I apologize it it has been previously addressed.
I am having trouble with a formula. I have a spreadsheet with a column of names many names are in the format of FirstName LastName but some are in the format of FirstName MiddleName LastName.
When I use the formaula =right(a1,len(a1)-find(” “,a1)) to extract the LastName, it works well for those names with the FirstName LastName format. However, it does not work when it encounters the FirstName MiddleName LastName format.
Is there anyway to modify that formula to look for the space (” “) from the right instead of from the left? Also, sometimes there are four names and I may need to extract the last two. So, in addition to the basic question above, is there a rule or construct to follow that can be adapted to whatever is needed for text extraction?