Text in Excel

A

Amanda

I am trying to switch the order of words in a cell. For
example I would like to switch "John Doe" to "Doe, John"
in the cell next to the original. Is there any way to do
this using a function? Please help!!!
 
D

Dan E

Amanda,

Here's a formula that will do it.

=RIGHT(A29,LEN(A29)-SEARCH(" ",A29)) & ", " & LEFT(A29,SEARCH(" ",A29)-1)

Note: Will only work for First Last style names. If you
have names like Bill L. Johnson you'll get results like
L. Johnson, Bill.

Dan E
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top