In Excel: select the column and use Data ▸ Text to Columns ▸ Delimited ▸ Space — or in Microsoft 365, =TEXTBEFORE(A2," ") for the first name and =TEXTAFTER(A2," ",-1) for the last.
"Last, First" order is detected automatically, and particles like van or de stay with the surname.
| First | Middle | Last |
|---|---|---|
| Ada | Byron | Lovelace |
| Grace | Hopper | |
| Martin | Luther | King |
| Ludwig | van Beethoven |
What this does
Names are the hardest thing to split on a delimiter, because the delimiter count varies: "Ada Lovelace" has one space, "Ada King Lovelace" has two, "van der Berg" has particles that belong to the surname, and "Lovelace, Ada" is reversed. Text to Columns splits on every space blindly, which puts middle names in the wrong column. The robust approach takes the first token from the left and the last from the right, letting anything between fall into a middle column: TEXTBEFORE/TEXTAFTER in Microsoft 365, or LEFT/FIND and RIGHT/LEN/SUBSTITUTE in older versions. Flash Fill (Ctrl+E) handles a consistent list in one keystroke and should be checked, not trusted. The same idea underpins a lot of everyday Excel work, so the few minutes spent getting it right here pay back across every sheet you build afterwards. Treat it as a pattern, not a one-off, and it stops being something you look up and starts being something you reach for. The difference between a quick fix and a sheet you can trust is the extra minute you spend validating “excel split name into two columns”. Start on a copy or a tiny sample, keep the affected columns visible, and compare the result with the tool above before you touch the real workbook. When a formula is involved, keep the inputs labelled beside it, reference cells instead of typing values, and apply number formatting only after the result checks out. The point is a text operation that turns messy entries into clean, usable data, but the practical win is that someone else can open the file and understand what happened without asking you.
A worked example
A2 holds "Ada King Lovelace". First name: =TEXTBEFORE(A2," ") returns Ada. Last name: =TEXTAFTER(A2," ",-1) — the -1 means the LAST space — returns Lovelace. Middle: =TRIM(SUBSTITUTE(SUBSTITUTE(A2,B2,""),D2,"")) returns King. In Excel 2019 and earlier: first name =LEFT(A2,FIND(" ",A2)-1); last name =TRIM(RIGHT(SUBSTITUTE(A2," ",REPT(" ",99)),99)). For "Lovelace, Ada" swap the order: last =TEXTBEFORE(A2,","), first =TRIM(TEXTAFTER(A2,",")). Contact exports, sign-up lists and CRM dumps all arrive with one name column, and mail merges, sorting by surname and de-duplication all need it split — correctly enough that "van der Berg" survives. If there is any chance you will reuse this, drop it into a small template tab right now: a labelled input area on the left and the formula beside it, checked once against the tool above. Next time the same question comes up, the answer is a single paste away instead of a rebuild from memory.
In Google Sheets
Google Sheets handles this almost identically to Excel. The formula syntax above is the same, and the menu lives under a slightly different label rather than a ribbon tab. Use the platform toggle at the top of the page to switch every keyboard shortcut between Windows and Mac, and expect at most cosmetic differences in naming. Nothing on this page is behind a login: the tool runs entirely in your browser, the formula is shown in full with one-click copy, and the steps work the same on Windows and Mac. That is the whole promise here — the exact answer, a way to prove it on your own numbers, and just enough context to make it stick. Here is the takeaway for “excel split name into two columns”: copy the answer if you are busy, but if you have a spare few minutes, rebuild the example in Excel yourself with the tool above open beside it. That single pass — type it, run it, watch the result move when you change an input — is what turns a formula you found into a technique you trust. Keep your inputs labelled and referenced, never hard-coded, and the same sheet stays correct and auditable as it grows. Done that way, you will not need to look this up again, and you will be the person others ask.
Common mistakes
- Using Text to Columns on a list containing middle names, which shifts the surname into a third column for some rows only.
- Deleting the source column while the split columns are still formulas pointing at it.
- Trusting Flash Fill without checking — it infers from the first rows and silently mishandles the exceptions.
- Splitting "Last, First" data with a space rule, which puts the comma on the surname.
- Assuming every row has a last name; single-word entries break
RIGHT-based formulas without anIFguard.
Frequently asked questions
How do I separate first and last name in Excel?
Data ▸ Text to Columns ▸ Delimited ▸ Space for simple two-part names. For anything with middle names, use =TEXTBEFORE(A2," ") and =TEXTAFTER(A2," ",-1) in Microsoft 365.
What if some names have a middle name?
Take the first token from the left and the last from the right, and let everything between fall into a middle column. Splitting on every space is what puts surnames in the wrong place.
How do I handle "Lastname, Firstname"?
Split on the comma instead: =TEXTBEFORE(A2,",") is the surname and =TRIM(TEXTAFTER(A2,",")) is the first name.
Does Flash Fill work for names?
Often, with Ctrl+E after typing one example. It infers a pattern from the first rows, so check the exceptions — particles like "van der" and hyphenated surnames are where it goes wrong.
Other ways people ask this
This is also commonly searched as “excel split names into two columns”, “how to split names in excel into two columns” and “how to split a name into two columns in excel”. They describe the identical operation, so you are in the right place no matter how you phrased it.
Why do people search for this in so many different ways?
Because the same task has many names. “excel split names into two columns”, “how to split names in excel into two columns”, “how to split a name into two columns in excel” all point at the one operation explained on this page, which is why they all lead here.