How to split names in Excel: Flash Fill, Text to Columns and LEFT/FIND formulas
Split a full name into last name, first name and patronymic in Excel: Flash Fill (Ctrl+E), Text to Columns, LEFT/MID/FIND formulas, and the four-word name trap.
An HR list holds full names in a single column, last name first: “Karimov Aziz Rustamovich”. An official order needs “Karimov A.R.”, and sorting alphabetically or searching by first name needs last name, first name and patronymic in separate columns.
Excel offers three ways: Flash Fill — fill by example (fastest), Text to Columns — split by a delimiter (no formulas), and LEFT/MID/FIND formulas (the result updates when the source changes).
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Full name | Last name | First name | Patronymic | |
| 2 | Karimov Aziz Rustamovich | Karimov | Aziz | Rustamovich | |
| 3 | Rakhimova Dilnoza Akmalovna | Rakhimova | Dilnoza | Akmalovna | |
| 4 | Turaev Javokhir Ilkhomovich | Turaev | Javokhir | Ilkhomovich | |
| 5 | Yusupova Malika Bakhodirovna | Yusupova | Malika | Bakhodirovna | |
| 6 | Aliev Sardor Shukhrat ugli | Aliev | Sardor | Shukhrat ugli | |
| 7 |
Method 1: Flash Fill — one example and Ctrl+E
1
In B2 type the last name from the first row by hand: Karimov. Press Enter.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Full name | Last name | ||
| 2 | Karimov Aziz Rustamovich | Karimov1 | ||
| 3 | Rakhimova Dilnoza Akmalovna | |||
| 4 | Turaev Javokhir Ilkhomovich | |||
| 5 | Yusupova Malika Bakhodirovna | |||
| 6 |
2
With B3 selected, press Ctrl + E (or Данные → Flash Fill). Excel reads the pattern as “everything before the first space” and fills the remaining rows instantly.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Full name | Last name | ||
| 2 | Karimov Aziz Rustamovich | Karimov | ||
| 3 | Rakhimova Dilnoza Akmalovna | Rakhimova2 | ||
| 4 | Turaev Javokhir Ilkhomovich | Turaev | ||
| 5 | Yusupova Malika Bakhodirovna | Yusupova | ||
| 6 |
3
Do the same for first name and patronymic: type “Aziz” in C2, “Rustamovich” in D2 and press Ctrl + E in each column. Flash Fill can also combine: type “Karimov A.R.” in E2 and it builds the rest the same way.
Method 2: Text to Columns — split on spaces
1
Make sure columns B:D, where the result will land, are empty. Select A2:A6 and go to Данные → Текст по столбцам.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Full name | ||||
| 2 | Karimov Aziz Rustamovich | ||||
| 3 | Rakhimova Dilnoza Akmalovna | ||||
| 4 | Turaev Javokhir Ilkhomovich | ||||
| 5 |
2
In step 1 choose Delimited. In step 2 tick only Space and turn on Treat consecutive delimiters as one — so a double space doesn’t create an empty column.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Full name | |||
| 2 | Karimov Aziz Rustamovich | |||
| 3 | Rakhimova Dilnoza Akmalovna | |||
| 4 | ||||
| 5 |
3
In step 3 set Destination to =$B$2 — otherwise Excel splits the original column and replaces the full name in column A with the last name. Click Finish.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Full name | Last name | First name | Patronymic | |
| 2 | Karimov Aziz Rustamovich | Karimov | Aziz | Rustamovich | |
| 3 | Rakhimova Dilnoza Akmalovna | Rakhimova | Dilnoza | Akmalovna | |
| 4 | Turaev Javokhir Ilkhomovich | Turaev | Javokhir | Ilkhomovich | |
| 5 |
Method 3: LEFT, MID and FIND formulas
1
Last name — up to the first space: =ЛЕВСИМВ(A2;НАЙТИ(" ";A2)-1). FIND returns the position of the space (8 for Karimov), and LEFT takes one character fewer.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Full name | Space at | Last name | |
| 2 | Karimov Aziz Rustamovich | 8 | Karimov | |
| 3 | Rakhimova Dilnoza Akmalovna | 10 | Rakhimova | |
| 4 | ||||
| 5 |
2
Patronymic — everything after the second space. To find the second space, give FIND a third argument so it starts searching after the first space: =ПСТР(A2;НАЙТИ(" ";A2;НАЙТИ(" ";A2)+1)+1;100). The 100 means “to the end”.
3
First name — between the two spaces: =ПСТР(A2;НАЙТИ(" ";A2)+1;НАЙТИ(" ";A2;НАЙТИ(" ";A2)+1)-НАЙТИ(" ";A2)-1). It looks long, but the logic is simple: start after the first space; length is the distance between the spaces.
4
Select the three formulas and fill down. Change a name in column A and the results update immediately — Flash Fill and Text to Columns can’t do that.
Pro level: short form, last word and Excel 365 functions
- Short form for documents:
=B2&" "&ЛЕВСИМВ(C2;1)&"."&ЛЕВСИМВ(D2;1)&"."→ “Karimov A.R.”. - Last word (whatever the number of words):
=СЖПРОБЕЛЫ(ПРАВСИМВ(ПОДСТАВИТЬ(A2;" ";ПОВТОР(" ";100));100)). Each space becomes 100 spaces, the rightmost 100 characters catch only the last word, and TRIM cleans up. - Excel 365:
=TEXTSPLIT(A2;" ")spills the name into columns to the right with one formula.=ТЕКСТДО(A2;" ")gives the last name,=ТЕКСТПОСЛЕ(A2;" ";2)everything after the second space. - The reverse — joining:
=C2&" "&B2→ “Aziz Karimov”, or=ОБЪЕДИНИТЬ(" ";ИСТИНА;B2:D2), which skips empty cells.
Try it in the simulator
Type =ЛЕВСИМВ(A2;НАЙТИ(" ";A2)-1) in B2 (last name) and =ПСТР(A2;НАЙТИ(" ";A2)+1;100) in C2 (first name). Then type =B2&" "&ЛЕВСИМВ(C2;1)&"." in D2 for the short form, and fill all three formulas down to row 6.
| A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | Name | Last name | First name | Short | ||||||||||||||||||||
| 2 | Karimov Aziz | |||||||||||||||||||||||
| 3 | Rakhimova Dilnoza | |||||||||||||||||||||||
| 4 | Turaev Javokhir | |||||||||||||||||||||||
| 5 | Yusupova Malika | |||||||||||||||||||||||
| 6 | Aliev Sardor | |||||||||||||||||||||||
| 7 | ||||||||||||||||||||||||
| 8 | ||||||||||||||||||||||||
| 9 | ||||||||||||||||||||||||
| 10 |
Has ExcelLab been useful?
Support the project and help us release new lessons and exercises.