Independent tech help — Sylvan Lake, AlbertaChecked against vendor documentationBrowse every fix ↗
The Tech Cell
Tech problems, solved
Computers6 min

How to Separate Names in Excel (Text to Columns)

Three ways to split a column of full names into first and last names in Excel, and how to pick the one that suits your sheet.

How to Separate Names in Excel (Text to Columns)

Select the column of full names, go to Data > Text to Columns, choose Delimited, tick Space, and set the destination to an empty column before you click Finish. For a one-off job with no formula, type the first name yourself and press Ctrl+E to let Flash Fill do the rest.

To separate names in Excel you split one column into two, and there are three ways to do it that behave quite differently. A column of full names is fine until you need to sort by surname, mail-merge a greeting, or match records against another list.

One point before you touch anything: Text to Columns writes over whatever is in its path. Its default destination is the cell you started from, so if you leave it alone your original full names are gone. Change that box, or copy the column first.

The fastest way to separate names in Excel: Text to Columns

This is a one-time conversion. It produces plain text, not formulas, so nothing updates if you add names later.

1. Select the column that holds the full names. Click the column letter to take the whole column, or drag over just the rows you want.

Excel with a column of full names selected and the Data tab open
Select the column of full names, then open the Data tab.

2. On the Data tab, in the Data Tools group, click Text to Columns. The Convert Text to Columns Wizard opens on step 1 of 3. Leave Delimited selected and click Next.

Convert Text to Columns Wizard step 1 of 3 with Delimited selected
Step 1 of the wizard. Delimited is the right choice, because a space separates the two parts of the name.

3. On step 2, tick Space and clear any other delimiter. The Data preview at the bottom redraws immediately, so you can see the split before you commit to it. Click Next.

Wizard step 2 with the Space delimiter ticked and the data preview showing two columns
Step 2. Tick Space and the preview splits the names into two columns.

4. On step 3, leave the column data format on General and look at the Destination box. It points at the cell you started from. Change it to the first cell of an empty column if you want to keep the full names. Click Finish.

Wizard step 3 of 3 showing the General data format and the Destination box
Step 3 sets the format and the destination. Left as it is, the result overwrites the original column.

The names land in two columns. Add your own headers, because the wizard splits the header cell too if you included it in the selection.

Excel showing full names in column A with first names in column B and last names in column C
After Finish, the first and last names sit in their own columns.

Flash Fill: show Excel one example

Flash Fill watches what you type next to your data and offers to finish the pattern. It is the quickest route when you only need this once and the names are not perfectly uniform.

Type the first name from row 2 into the column beside it and press Enter. Start typing the second one and a greyed-out preview of the whole column appears. Press Enter to accept it. If nothing appears, press Ctrl+E, or click Data > Flash Fill to run it by hand. Repeat in the next column for surnames.

Excel offering a Flash Fill preview of first names in the column beside the full names
Flash Fill: type one example, start the next, and Excel offers the rest of the column.

Flash Fill is case sensitive, so if your example is lower case the whole column follows suit. Like Text to Columns, it writes values rather than formulas.

A formula, if the list keeps growing

Use a formula when new names arrive and you want the split columns to keep up. On Microsoft 365 and Office 2024, =TEXTSPLIT(A2," ") splits the cell and spills the parts across two cells on its own. For a single part at a time, =TEXTBEFORE(A2," ") gives the first name and =TEXTAFTER(A2," ") gives the last.

These functions do not exist in Excel 2021, 2019 or 2016. On those versions the classic pair still works: =LEFT(A2,SEARCH(" ",A2)-1) for the first name and =RIGHT(A2,LEN(A2)-SEARCH(" ",A2)) for the last.

What this does not do

None of these methods understand names. They only find the space. A row containing "Mary Anne Johnson" splits into three pieces under Text to Columns, and TEXTAFTER returns "Anne Johnson" rather than the surname. Sort your list by length or scan it before you start, and handle the multi-part rows separately.

Suffixes and prefixes cause the same trouble: "Dr Alice Brown" and "Robert White Jr" land in the wrong columns. Flash Fill copes with some of this if your examples show it what you want, but it is guessing from a pattern, not applying a rule, so check the output rather than trusting it.

Text to Columns and Flash Fill are also one-shot. Paste in fifty new names tomorrow and neither column updates. Only the formula route does that.

Common questions

Can I undo it? Yes, Ctrl+Z reverses both Text to Columns and Flash Fill straight away. Once the file is saved and closed, an overwritten column is gone, which is the argument for pointing the destination somewhere empty.

The names are separated by a comma, like "Smith, John". Same wizard. On step 2, tick Comma as well as Space, and tick Treat consecutive delimiters as one so the gap after the comma does not create an empty column.

Why did my results turn into dates? That is the General format converting something that looks like a date. Set the affected column to Text on step 3 of the wizard.

If the option isn't there

Text to Columns sits on the Data tab in every desktop version of Excel, but it is missing from Excel for the web, where the formula route is the only option. If the button is greyed out, you have more than one column selected, or the sheet is protected.

Flash Fill needs Excel 2013 or later, and can be switched off. Turn it back on under File > Options > Advanced > Automatically Flash Fill. If you work in Excel a lot, it is worth knowing the neighbouring tricks too, like keeping your header row visible while you scroll and adding tick boxes to a sheet.

Daniel Shuttleworth
Written by

Daniel Shuttleworth

Editor · Sylvan Lake, Alberta

Daniel Shuttleworth studied Advanced Information Communication Technology and has spent more than 20 years working out why consumer tech misbehaves — from an Amiga 600 and a VHS deck through to whatever Xbox and Samsung shipped this year. He writes The Tech Cell from Sylvan Lake, Alberta, and checks every step against the vendor's current documentation before it goes out, because the menu that worked last spring has usually moved.

Filed under · Computers← Back to all articles
How we work

Every step checked before it reaches you.

Menus move, settings get renamed and features quietly disappear. So each guide is written against the vendor's current documentation rather than from memory, and says plainly when a fix depends on your version.

3
Desks covered
0
Sponsored posts
$0
Cost to read
Every
Guide source-checked

One email when we publish a fix worth knowing.

No filler, and we do not pass your address to anyone.