Hi guys,
what would be the easiest way to reverse the order of words entered in one cell? If Cell A1 says John Smith (one space in between)- how to get Smith John with a formula?
Thanks!
Hi guys,
what would be the easiest way to reverse the order of words entered in one cell? If Cell A1 says John Smith (one space in between)- how to get Smith John with a formula?
Thanks!
=RIGHT(A1,LEN(A1)-FIND(" ",A1))&" "&LEFT(A1,FIND(" ",A1)-1)
A B 1Smith John John Smith
If you like my answer please click on * Add Reputation
Don't forget to mark threads as "Solved" if your problem has been resolved
"Nothing is so firmly believed as what we least know."
--Michel de Montaigne
Mabe this?
=MID(A1,FIND(" ",A1,1)+1,99)&" "&LEFT(A1,FIND(" ",A1,1)-1)
If you want then split into 2 cells...
B1=MID(A1,FIND(" ",A1,1)+1,99)
C1=LEFT(A1,FIND(" ",A1,1)-1)
edit: is there an echo in here AlKey?![]()
1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
2. If your question is resolved, mark it SOLVED using the thread tools
3. Click on the star if you think someone helped you
Regards
Ford
Thank you AlKey and FDibbins! Both methods work!
Thanks for the feedback!![]()
Happy to help![]()
Try this...
Data Range
A B 1 John Smith Smith John 2 Alex Van Halen Van Halen Alex 3 Oscar De La Hoya De La Hoya Oscar
This formula entered in B1 and copied down:
=MID(A1&" "&A1,FIND(" ",A1)+1,LEN(A1))
Biff
Microsoft MVP Excel
Keep It Simple Stupid
Let's Go Pens. We Want The Cup.
Thats pretty slick Tony, and very sneaky![]()
Yup, I was following trhat 1 too
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks