I need to change "Jane S-Doe" to "S-Doe, Jane" in the same cell. Help appreciated.

Gamerade

New Member
Joined
Oct 29, 2009
Messages
4
I have a bunch of names in the following format. Each name is in it's own cell

All of them have {First name> S- > Last name}

Example:
Jane S-Doe

I would like it to be: {S- > Last name, > First name}

Example:
S-Doe, Jane


Is there a way to do this automatically with a formula or macro?
 
if all the names are in the same format, you can just use text to column feature and split the names in two cells. Then use concatenate function to combine both, in the desired order.

Paul
 
Upvote 0

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
Data, not sure how yours is "correct". It only seems to work for "Jane S-Doe" and names of the exact same length, but not names longer or shorter. And it still leaves out the comma between the last and first name.

CMS jr's just needs to add the -1 at the end to get rid of the trailing space.

Cheers...you're right.
Correction:
=CONCATENATE(MID(A1,FIND(" ",A1)+1,255),", ",LEFT(A1,FIND(" ",A1)-1))
 
Upvote 0

Forum statistics

Threads
1,215,734
Messages
6,126,545
Members
449,316
Latest member
sravya

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