How to split a column in two?

EduPAz

Board Regular
Joined
Mar 18, 2017
Messages
69
Office Version
  1. 2019
  2. 2016
Platform
  1. Windows
Hi,

I have in column D a list of employees names and last names:

Mark Jones
Tom Smith
Robert Brown Lewis

I need to split the names and last names and create two columns:
[TABLE="width: 500"]
<tbody>[TR]
[TD]Names
[/TD]
[TD]Last names
[/TD]
[/TR]
[TR]
[TD]Mark
[/TD]
[TD]Jones
[/TD]
[/TR]
[TR]
[TD]Tom
[/TD]
[TD]Smith
[/TD]
[/TR]
[TR]
[TD]Robert
[/TD]
[TD]Brown Lewis
[/TD]
[/TR]
</tbody>[/TABLE]

Can someone please help me?

Thanks,

Edu
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
In the case of "Robert Brown Lewis", you are taking just "Robert" for first name, but then both "Brown" and "Lewis" for Last names.
But what if you had something like "Mary Ann Cooper", where they have two words in the first name, and one only for the Last name?

The point is, if you have more than two words, Excel cannot really tell which should have two words, and which should have one.
It is very literal, and can only perform the exact rules that you set up. And it isn't really possible to come up with any rule that will handle every case perfectly.

If it was me, I would probably use "Text to Columns" to split the data every time it finds a space. So some entries may have 3 or 4 columns.
I would then manually fix/clean-up the ones with more than two columns after the fact.
 
Upvote 0

Forum statistics

Threads
1,223,270
Messages
6,171,103
Members
452,379
Latest member
IainTru

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