Sure. Suppose "Smith, Bill" (without the quotes) is in cell B2. You could
enter these three formulas:
In cell C2: =FIND(",",$B2)
In cell D2: =TRIM(MID($B2,$C2+1,999))
In cell E2: =LEFT($B2,$C2-1)
Here, the first formula finds the position of the **first** comma in the
name, and the other two formulas use that number to return what you want.
However, you might run into a problem if your names include something like:
Smith, Jr., Bill. In this case, you want to split using the **last** comma.
To find the position of the last comma, cell C2 needs to use a more complex
formula:
=FIND("#",SUBSTITUTE($B2,",","#",LEN($B2)-LEN(SUBSTITUTE($B2,",",""))))
Here, we count the number of characters in B2, and subtract the number of
characters with the commas stripped out, which gives us the number of
commas. We substitute a "#" sign for that final comma, and use FIND to
return the position of that # sign.
(Other than writing a VBA function, can anyone suggest an easier way to find
the last occurrence of a character in text? This is the only method that
I've found.)
Good luck.
Charley Kyd