Does any one know how to return the initials of a name.
The names are in the format Last, First, Middle Initial.
So
John William Smith would be entered as Smith, John, W
I am looking for a formula such as the one below because it works even if the person leaves out the middle inital or only puts the first name or the last name its kind of a fail safe however I cannot figure out how to manipulate the foumula for the format of the names. If returns the initials as SJW instead of JWS
=if(len(B3)-len(SUBSTITUTE(B3," ",""))=0,left(B3,1),if(len(B3)-len(SUBSTITUTE(B3," ",""))=1,left(B3,1)&mid(B3,find(" ",B3)+1,1),left(B3,1)&mid(B3,find(" ",B3)+1,1)&mid(B3,find(" ",B3,find(" ",B3)+1)+1,1)))
I have also tried this one but cannont get it to work with the Last, First, Middle Initial format.
=IF(ISERROR(FIND(" ",A1)),LEFT(A1,1),TRIM(LEFT(A1,1)&MID(A1,FIND(" ",A1&" ")+1,1)&MID(A1,FIND(" ",SUBSTITUTE(A1&" "," ","~",1))+1,1)))
I was able to make the one below work with the format I need however it is laking that fail safe in that if the person leaves out there middle inital it gives an error.
=UPPER(MID(A1,FIND(" ",A1)+1,1)&(MID(A1,FIND(" ",A1,FIND(" ",A1,1)+1)+1,1)&LEFT(A1)))
Sorry I'm kind of an amature when it comes to formulas if anyone has a soultion it would be greatly appreciated. Thanks
The names are in the format Last, First, Middle Initial.
So
John William Smith would be entered as Smith, John, W
I am looking for a formula such as the one below because it works even if the person leaves out the middle inital or only puts the first name or the last name its kind of a fail safe however I cannot figure out how to manipulate the foumula for the format of the names. If returns the initials as SJW instead of JWS
=if(len(B3)-len(SUBSTITUTE(B3," ",""))=0,left(B3,1),if(len(B3)-len(SUBSTITUTE(B3," ",""))=1,left(B3,1)&mid(B3,find(" ",B3)+1,1),left(B3,1)&mid(B3,find(" ",B3)+1,1)&mid(B3,find(" ",B3,find(" ",B3)+1)+1,1)))
I have also tried this one but cannont get it to work with the Last, First, Middle Initial format.
=IF(ISERROR(FIND(" ",A1)),LEFT(A1,1),TRIM(LEFT(A1,1)&MID(A1,FIND(" ",A1&" ")+1,1)&MID(A1,FIND(" ",SUBSTITUTE(A1&" "," ","~",1))+1,1)))
I was able to make the one below work with the format I need however it is laking that fail safe in that if the person leaves out there middle inital it gives an error.
=UPPER(MID(A1,FIND(" ",A1)+1,1)&(MID(A1,FIND(" ",A1,FIND(" ",A1,1)+1)+1,1)&LEFT(A1)))
Sorry I'm kind of an amature when it comes to formulas if anyone has a soultion it would be greatly appreciated. Thanks