Flexremmington
New Member
- Joined
- Oct 19, 2021
- Messages
- 10
- Office Version
- 365
- Platform
- Windows
My input column is A. I want to extract Last, First, Middle initial.
My issues are-
Not all names come in the same format. Some have middle initial, most do not. Some have DVM (Dr. of veterinary medicine) behind their last name, most do not.
I need the last names to appear without the DMV in col C, the first name to appear without the middle initial in Col D, and middle initial to appear in E when applicable. The DVM, does not need to appear anywhere, but that postnominal will change depending on what group submits information to me, meaning the name may be submitted as as Del Rio XYZ, Jackson F.
Currently, I am using =LEFT(A2,SEARCH(",",A2,1)-1) in Col C to extract the last name, and =TRIM(RIGHT(SUBSTITUTE(A2,",",REPT(" ",LEN(A2))),LEN(A2))) to extract the first name.
My issues are-
Not all names come in the same format. Some have middle initial, most do not. Some have DVM (Dr. of veterinary medicine) behind their last name, most do not.
I need the last names to appear without the DMV in col C, the first name to appear without the middle initial in Col D, and middle initial to appear in E when applicable. The DVM, does not need to appear anywhere, but that postnominal will change depending on what group submits information to me, meaning the name may be submitted as as Del Rio XYZ, Jackson F.
Currently, I am using =LEFT(A2,SEARCH(",",A2,1)-1) in Col C to extract the last name, and =TRIM(RIGHT(SUBSTITUTE(A2,",",REPT(" ",LEN(A2))),LEN(A2))) to extract the first name.