rearrange text

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I need to flip the names in several cells...is there a formula or trick to
avoid doing it manually? I have the names set up as (Thomas, John) but need
them all to look like (John Thomas).
 
I think it was "Daddylonglegs" that posted this approach:

With A1: Public, John Q.

B1: =MID(A1&" "&A1,FIND(",",A1)+2,LEN(A1)-1)

If extra spaces may be a problem:
B1: =TRIM(MID(A1&" "&A1,FIND(",",A1)+2,LEN(A1)-1))

Either way returns John Q. Public

Does that help?

***********
Regards,
Ron

XL2002, WinXP-Pro
 

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

Back
Top