Hello:
I have name as First Name Middle Initial Last Name (Example John E Doe)
How would i convert it as Last Name, First Name Middle Initial ( Result as Doe, John E)
Please help and let me know if any questions.
Thank you
Riz Momin
Hello:
I have name as First Name Middle Initial Last Name (Example John E Doe)
How would i convert it as Last Name, First Name Middle Initial ( Result as Doe, John E)
Please help and let me know if any questions.
Thank you
Riz Momin
Last edited by rizmomin; 06-13-2013 at 12:32 PM.
=TRIM(RIGHT(SUBSTITUTE(A1," ",REPT(" ",20)),20))&", "&TRIM(LEFT(SUBSTITUTE(A1," ",REPT(" ",20)),40)) would do it
"Unless otherwise stated all my comments are directed at OP"
Mojito connoisseur and now happily retired
where does code go ?
look here
how to insert code
how to enter array formula
why use -- in sumproduct
recommended reading
wiki Mojito
how to say no convincingly
most important thing you need
Martin Wilson: SPV
and RSMBC
Hi Martinwilson:
Thanks a lot, it works.
Riz Momin
Hello,
=right(B30;DŁ(B30)-find("*";substitute(B30;" ";"*";len(B30)-len(substitute(B30;" ";"")));1))&", "&substitute(B30;right(B30;DŁ(B30)-find("*";substitute(B30;" ";"*";len(B30)-len(substitute(B30;" ";"")));1));"")
Regards
This works for John E Doe and John Doe
=(IF((IF((LEN(A1)-LEN(SUBSTITUTE(A1," ","")))>1,FIND(" ",A1,(FIND(" ",A1,1))+1),""))<>"",RIGHT(A1,LEN(A1)-(IF((LEN(A1)-LEN(SUBSTITUTE(A1," ","")))>1,FIND(" ",A1,(FIND(" ",A1,1))+1),""))),RIGHT(A1,LEN(A1)-(FIND(" ",A1,1))))) & ", " & (IF((LEN(A1)-LEN(SUBSTITUTE(A1," ","")))>1,MID(A1,(FIND(" ",A1,1))+1,(IF((LEN(A1)-LEN(SUBSTITUTE(A1," ","")))>1,FIND(" ",A1,(FIND(" ",A1,1))+1),""))-(FIND(" ",A1,1))),"")) & " " & (LEFT(A1,(FIND(" ",A1,1))-1))
Elegant Simplicity............. Not Always
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks