A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Hi,
=TRIM(MID(LEFT(A1&" ",SEARCH(" ? ",A1&" A ")),FIND(",",A1)+1,99)&LEFT(A1,FIND(",",A1)-1))
Regards
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I am trying to reformat a string of names to just be "First Name Last Name" ie. John Smith.
Currently I have names with and without a middle initial in them that are formatted like this:
Last, First MI
Last, First
Smith, John E
Smith, John
Can someone help me with the formulas that would do this? Thank you
A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.
Answer accepted by question author
Hi,
=TRIM(MID(LEFT(A1&" ",SEARCH(" ? ",A1&" A ")),FIND(",",A1)+1,99)&LEFT(A1,FIND(",",A1)-1))
Regards
Hi
So for this
Smith John J
you want this
John Smith
=SUBSTITUTE(MID(LEFT(A1,FIND(" ",A1&" ",FIND(" ",A1&" ")+1))&" "&A1,FIND(" ",A1)+1,LEN(A1)),",","")
Try this formula (change A1 to suit your needs):
=MID(A1,FIND(" ",A1,1)+1,IFERROR(FIND(" ",A1,FIND(" ",A1,1)+1),LEN(A1)+1)-FIND(" ",A1,1)-1)&" "&LEFT(A1,FIND(",",A1,1)-1)
Hope this helps,
Eric
If your names starts in A1, put following formula in a cell and drag down
=IF(LEN(TRIM(RIGHT(A1,2)))=1,MID(A1,1,FIND("*",SUBSTITUTE(A1," ","*",2))-1),A1)
This works great...now I just found another issue. I have a few people that have 2 first names and/or 2 last names that are seperated by a space.
Example:
Smith, Ana Karen J
Last, First First MI
Van Deets, Greg M
Last Last, First MI
Can you help to reformat to be:
Ana Karen Smith
First First Last
Greg Van Deets
First Last Last
Thank you