Reversing Cell contents

nsutton

Board Regular
Joined
Nov 12, 2010
Messages
64
Hello,

I know this can be done quickly but i cant remember how!!.

Problem:
All i want to do is change a name in a cell from (for example)
Joe Bloggs
to
Bloggs, Joe

Many thanks
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
Assuming it is always first name last name with a space, thsi should work:

=mid(a1,find(" ",a1)+1,len(a1))&", "&left(a1,find(" ",a1)-1)

This is untested, but let me know if it doesn't work, it should handle names like Hank Williams Jr. as well and convert it to Williams Jr., Hank.

Hope that helps.
 
Last edited:
Upvote 0
Excel Workbook
CD
5Joe BloggsBloggs Joe
6Sammy SmithSmith Sammy
7Derek MackMack Derek
8Aiden CaulleyCaulley Aiden
9Romeo ThompsonThompson Romeo
Sheet1
 
Upvote 0

Forum statistics

Threads
1,224,590
Messages
6,179,749
Members
452,940
Latest member
rootytrip

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top