How to split first and last name in Excel.
You split first and last name in Excel with Text to Columns, Flash Fill or a formula. All three work for John Smith and fail for names such as Jan van der Berg. Our free name splitter below handles both.
By Christian Branbergen, 30 November 2026.
How do I split names with Text to Columns? Every word to its own column.
Text to Columns splits a column on a character you choose, such as a space. It needs no formula and works in every version of Excel.
- Select the column with the full names.
- Open the Data tab and choose Text to Columns.
- Choose Delimited and click Next.
- Tick Space, untick the other delimiters and click Finish.
A name with three words gets three columns. Make sure the columns to the right are empty, or Excel overwrites them.
How do I split names with a formula? TEXTBEFORE and TEXTAFTER, or LEFT and FIND.
A formula keeps the split up to date when the full name changes. In Excel for Microsoft 365 and Excel 2024, put the full name in A2 and use:
First name
=TEXTBEFORE(A2," ") returns the text before the first space.
Last name
=TEXTAFTER(A2," ",-1) returns the text after the last space.
Older versions of Excel
=LEFT(A2,FIND(" ",A2)-1) gives the first name. =RIGHT(A2,LEN(A2)-FIND(" ",A2)) gives everything after the first space.
How do I split names with Flash Fill?
Flash Fill copies a pattern you type. Type the first name of row 2 in the next column, select the cell below and press Ctrl+E. Excel fills the column, and guesses wrong when names do not follow the pattern of your example.
How do I split names in Google Sheets?
Google Sheets splits a name with =SPLIT(A2," "). Each word goes to its own column, with the same problems as Excel.
Where does Excel split names wrong? Excel splits on spaces, not on names.
Excel does not know which word is a first name, a particle or a title. These five names show the difference between the formula and our name parser.
| Full name | Excel: first name | Excel: last name | Name Parser |
|---|---|---|---|
| Maria del Carmen López García | Maria | García | Maria del Carmen · López García |
| Jan van der Berg | Jan | Berg | Jan · van der Berg |
| Dr. Anna Jansen Jr. | Dr. | Jr. | Dr. · Anna · Jansen · Jr. |
| SMITH, JOHN | SMITH, | JOHN | John · Smith |
| Wang Wenlu | Wang | Wenlu | Wenlu · Wang |
How our parser handles every name format is explained on Name Parsing.
How do I split a long list of names? In your dashboard, or with the API.
Without code
Paste the list in your dashboard and download the result as a CSV file for Excel. A free account splits 100 names a day; paid plans up to 750 at once.
With the API
Send each name to the parse endpoint. The response holds first name, middle names, surname, gender and country.
Gender and salutation too
Every split name comes with the gender by name and a salutation for your mail merge.
Questions, answered. Excel, Google Sheets and long lists.
How do I separate first and last name in Excel?
Select the column, choose Data, then Text to Columns, pick Delimited and Space, and click Finish. Each word goes to its own column. For a formula, use =TEXTBEFORE(A2," ") for the first name and =TEXTAFTER(A2," ",-1) for the last name.
Why does Excel split some names wrong?
Excel splits on spaces and does not know names. It cuts Jan van der Berg into Jan and Berg, takes Dr. as a first name, and puts the family name Wang in the first name column.
How do I split names in Google Sheets?
Use =SPLIT(A2," "). It puts each word in its own column, with the same problems as Excel for particles, titles and double surnames.
How do I split a long list of names?
Paste the list in your Name Parser dashboard and download the result as a CSV file for Excel. A free account splits 100 names a day; paid plans up to 750 at once. Developers send each name to the parse endpoint of the API.