Intermediate

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).

Книга1 - Excel
—☐✕
C2fx=ПСТР(A2;НАЙТИ(" ";A2)+1;НАЙТИ(" ";A2;НАЙТИ(" ";A2)+1)-НАЙТИ(" ";A2)-1)
ABCDE
1Full nameLast nameFirst namePatronymic
2Karimov Aziz RustamovichKarimovAzizRustamovich
3Rakhimova Dilnoza AkmalovnaRakhimovaDilnozaAkmalovna
4Turaev Javokhir IlkhomovichTuraevJavokhirIlkhomovich
5Yusupova Malika BakhodirovnaYusupovaMalikaBakhodirovna
6Aliev Sardor Shukhrat ugliAlievSardorShukhrat ugli
7
Готово
Names split with formulas — even “ugli” (son of) in the last row stays in the right place

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.

Книга1 - Excel
—☐✕
B3fx
ABCD
1Full nameLast name
2Karimov Aziz RustamovichKarimov1
3Rakhimova Dilnoza Akmalovna
4Turaev Javokhir Ilkhomovich
5Yusupova 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.

Книга1 - Excel
—☐✕
B3fxRakhimova
ABCD
1Full nameLast name
2Karimov Aziz RustamovichKarimov
3Rakhimova Dilnoza AkmalovnaRakhimova2
4Turaev Javokhir IlkhomovichTuraev
5Yusupova Malika BakhodirovnaYusupova
6
ГотовоКоличество: 3

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 Данные → Текст по столбцам.

Книга1 - Excel
—☐✕
ФайлГлавнаяВставкаРазметка страницыФормулыДанныеРецензированиеВидСправка
Получить данныеОбновить все
Получить данные
СортировкаФильтр
Сортировка и фильтр
Текст по столбцамУдалить дубликатыПроверка данных
Работа с данными
A2fxKarimov Aziz Rustamovich
ABCDE
1Full name
2Karimov Aziz Rustamovich
3Rakhimova Dilnoza Akmalovna
4Turaev Javokhir Ilkhomovich
5
ГотовоКоличество: 3

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.

Книга1 - Excel
—☐✕
A2fxKarimov Aziz Rustamovich
ABCD
1Full name
2Karimov Aziz Rustamovich
3Rakhimova Dilnoza Akmalovna
4
5
ГотовоКоличество: 2

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.

Книга1 - Excel
—☐✕
fx
ABCDE
1Full nameLast nameFirst namePatronymic
2Karimov Aziz RustamovichKarimovAzizRustamovich
3Rakhimova Dilnoza AkmalovnaRakhimovaDilnozaAkmalovna
4Turaev Javokhir IlkhomovichTuraevJavokhirIlkhomovich
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.

Книга1 - Excel
—☐✕
C2fx=ЛЕВСИМВ(A2;НАЙТИ(" ";A2)-1)
ABCD
1Full nameSpace atLast name
2Karimov Aziz Rustamovich8Karimov
3Rakhimova Dilnoza Akmalovna10Rakhimova
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.

Книга1 - Excel
—☐✕
Буфер обмена
Шрифт
Выравнивание
Число
Стили
Ячейки
Редактирование
✕✓fx
ABCDEFGHIJKLMNOPQRSTUVWX
1NameLast nameFirst nameShort
2Karimov Aziz
3Rakhimova Dilnoza
4Turaev Javokhir
5Yusupova Malika
6Aliev Sardor
7
8
9
10
Лист1
Готово

Has ExcelLab been useful?

Support the project and help us release new lessons and exercises.

Support us
Previous

147 / 154