Flip Name Order [first name] [last name] to [last name], [first name]

I have a list of 250 names in one field where the name is listed as  [first name] [last name].

I need, in a column next to the name field, convert/flip the name structure to [last name], [first name]. What's the quickest way to go about this?
eossmaAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Saurabh Singh TeotiaCommented:
Assuming you have square brackets in first and last name shown in example..

If your value is in A1..

Write this formula in B1...

=RIGHT(A1,LEN(A1)-FIND("[",A1,FIND("[",A1,1)+1)+1)&", " & LEFT(A1,FIND("]",A1,1)+1)

Saurabh...
0
MacroShadowCommented:
=MID(A1&" "&A1,FIND(" ",A1)+1,LEN(A1))
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Neil RussellTechnical Development LeadCommented:
Two things to consider....

Is the data ALWAYS ONLY Two Names, Firstname Lastname?
Do you have or may have in the future International customers?

We were faced with a similar task not long ago that on paper looks simple but IF either of the above come into play then you can not ask a computer to do it for you with 100% certainty.  I believe that some Indonesian and/or Sri lankan names may have four separate parts and that offence can easily be caused to people and indeed customers lost if you address them incorrectly.
0
Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

eossmaAuthor Commented:
SUPER FAST! THX
0
eossmaAuthor Commented:
OOPS! Just noticed if I add the comma:
=MID(A1&", "&A1,FIND(" ",A1)+1,LEN(A1))

 . . it shortens the first name by one character.
0
MacroShadowCommented:
=MID(A1&", "&A1,FIND(" ",A1)+1,LEN(A1)+1)
0
eossmaAuthor Commented:
THANK YOU!
0
Saurabh Singh TeotiaCommented:
Hey Macroshadow,

Really liked the logic that you have used in this one..Good one..really smart i like it .. :-)

Saurabh...
0
MacroShadowCommented:
@Saurabh Singh Teotia, Thanks.
0
MacroShadowCommented:
@eossma, You're welcome.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.