Re-sorting data in one cell from first name to surname

michch

New Member
Joined
Jan 20, 2005
Messages
3
Someone has sent me a list of names (more than 90) which are typed into one cell, ie Fred Bloggs all in one cell. All the names are sorted by first name, ie Fred, not Bloggs, Fred, as I want them to be.

I know you can merge two cells into one to make them sort alphabetically but pretty sure I can't do anything with this other than retype the whole lot in surname, followed by first name...

Any ideas anyone??? Your help would be GREATLY appreciated.

Many thanks
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.

martinee

Well-known Member
Joined
Nov 4, 2003
Messages
960
Try the text to columns feature in the Data menu. It will split your data so you can sort by last name. Then if you really want it in a single cell, you can concatenate the two columns in the appropriate order. HTH.
 

michch

New Member
Joined
Jan 20, 2005
Messages
3
Thats great thank you, I had no idea this feature existed. Unfortunately it seems only to want to work with fixed sized columns, the names are all difference character spaces so it is chopping some off in mid name, ie Fred Bloggs goes nicely into Bloggs and then another cell for Fred, but Jonathan Bloggs is chopped off at Jona and then thanjones into the second cell?? any ideas?

Much appreciated
 

martinee

Well-known Member
Joined
Nov 4, 2003
Messages
960
Choose the delimited option and select either a space or a comma (if the comma exists!). It is not limited to fixed width. Please don't do this manually as text to columns will make your life much easier. HTH
 

michch

New Member
Joined
Jan 20, 2005
Messages
3
Sorry didn't reply - been up to my neck in it! What a little beauty you are - thats brilliant - as you say - what a time saver - thank you VERY MUCH!!
Kind regards, Michele
 

Forum statistics

Threads
1,148,055
Messages
5,744,544
Members
423,882
Latest member
Seeham

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
Top