Excel tutorial
/

Data analysis

Intermediate

Excel Text to Columns: split names, codes and dates into columns

Split full names, addresses or CSV lines from one cell into columns with Text to Columns: Delimited vs Fixed width, keeping leading zeros and dates intact.

Data often arrives “glued together”: in an export from accounting software or a website, last name, first name and patronymic share one cell; in a CSV file, the whole line sits in one column, separated by semicolons. You can’t sort or filter data like that.

Text to Columns splits the text in one column into several — by a delimiter (space, comma, semicolon) or by character count. Hundreds of rows are split in seconds.

Книга1 - Excel
—☐✕
fx
ABCDE
1Full nameLast nameFirst namePatronymic
2Aliyev Aziz KarimovichAliyevAzizKarimovich
3Karimova Dilnoza RustamovnaKarimovaDilnozaRustamovna
4Yusupov Javohir AlisherovichYusupovJavohirAlisherovich
5Rahimova Malika BaxtiyorovnaRahimovaMalikaBaxtiyorovna
6
Готово
The result: full names from column A split into three columns, with the original column kept

Split by delimiter (Delimited)

1

Select the cells to split (A2:A5) — one column only. Make sure the columns to the right are empty. Click Данные → Текст по столбцам.

Книга1 - Excel
—☐✕
ФайлГлавнаяВставкаРазметка страницыФормулыДанныеРецензированиеВидСправка
Получить данныеОбновить все
Получить данные
СортировкаФильтр
Сортировка и фильтр
Текст по столбцамУдалить дубликатыПроверка данных
Работа с данными
A2fxAliyev Aziz Karimovich
ABCDE
1Full nameLast nameFirst namePatronymic
2Aliyev Aziz Karimovich
3Karimova Dilnoza Rustamovna
4Yusupov Javohir Alisherovich
5Rahimova Malika Baxtiyorovna
6
ГотовоКоличество: 4

2

Wizard step 1: choose Delimited — use it when the parts are separated by a space, comma or another character. Click Next.

Книга1 - Excel
—☐✕
A2fxAliyev Aziz Karimovich
ABCDE
1Full nameLast nameFirst namePatronymic
2Aliyev Aziz Karimovich
3Karimova Dilnoza Rustamovna
4Yusupov Javohir Alisherovich
5Rahimova Malika Baxtiyorovna
6
ГотовоКоличество: 4

3

Step 2: tick the delimiter — here, Space. Also tick Treat consecutive delimiters as one so that an accidental double space doesn’t create an empty column. The preview below shows the result.

Книга1 - Excel
—☐✕
A2fxAliyev Aziz Karimovich
ABCDE
1Full nameLast nameFirst namePatronymic
2Aliyev Aziz Karimovich
3Karimova Dilnoza Rustamovna
4Yusupov Javohir Alisherovich
5Rahimova Malika Baxtiyorovna
6
ГотовоКоличество: 4

4

Step 3: choose a format for each column (usually General) and set Destination to where the result should start — $B$2. Otherwise Excel writes over column A itself and the original text is lost.

Книга1 - Excel
—☐✕
A2fxAliyev Aziz Karimovich
ABCDE
1Full nameLast nameFirst namePatronymic
2Aliyev Aziz Karimovich
3Karimova Dilnoza Rustamovna
4Yusupov Javohir Alisherovich
5Rahimova Malika Baxtiyorovna
6
ГотовоКоличество: 4

5

Click Finish. Last name, first name and patronymic land in columns B, C and D (see the result above). If those cells aren’t empty, Excel asks “There’s already data here. Do you want to replace it?” — click OK and the old data is gone.

Split by character count (Fixed width)

Sometimes there’s no delimiter, but each part always has the same length: for example, TS0012520250115 — 2 characters of branch code, 5 of product code, 8 of date. In that case, choose Fixed width in step 1.

In step 2, click the ruler above the preview to place break lines: drag a line to move it, double-click to remove it. The remaining steps are the same as for Delimited.

Книга1 - Excel
—☐✕
A2fx00125;Tea;15.01.2025
ABCDE
1SourceCodeProductDate
200125;Tea;15.01.202500125Tea15.01.2025
300348;Rice;03.02.202500348Rice03.02.2025
401020;Sugar;10.02.202501020Sugar10.02.2025
5
ГотовоКоличество: 3
A semicolon-separated line: Text is chosen for the Code column — 00125 keeps its zeros, and the date becomes a real date

Pro level: Text to Columns as a quick “repair tool”

This tool isn’t only for splitting. To turn numbers stored as text (left-aligned, ignored by SUM) into real numbers: select the column → Текст по столбцам → click Finish right away. Excel re-reads every cell and the numbers become numbers.

The same trick fixes text dates: choose Date: DMY in step 3 and strings like “15.01.2025” become real dates you can subtract and sort.

If the source data is refreshed regularly, formulas are handier because they recalculate: LEFT, MID, FIND, and in Excel 365 TEXTSPLIT. For a one-off job, Flash Fill (Ctrl + E) works well too: type an example in the first cell by hand and press Ctrl + E.

Книга1 - Excel
—☐✕
B2fx=ЛЕВСИМВ(A2;НАЙТИ(" ";A2)-1)
ABCD
1NameLast nameFirst name
2Aliyev AzizAliyevAziz
3Karimova DilnozaKarimovaDilnoza
4Yusupov JavohirYusupovJavohir
5
Готово
FIND locates the space, LEFT takes the part before it and MID the part after it

Try it in the simulator

Split the names with formulas: type =ЛЕВСИМВ(A2;НАЙТИ(" ";A2)-1) (last name) in B2 and =ПСТР(A2;НАЙТИ(" ";A2)+1;50) (first name) in C2, then fill both formulas down to row 6.

Книга1 - Excel
—☐✕
Буфер обмена
Шрифт
Выравнивание
Число
Стили
Ячейки
Редактирование
✕✓fx
ABCDEFGHIJKLMNOPQRSTUVWX
1NameLast nameFirst name
2Aliyev Aziz
3Karimova Dilnoza
4Yusupov Javohir
5Rahimova Malika
6Toshpulatov Sardor
7
8
9
10
Лист1
Готово

Has ExcelLab been useful?

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

Support us
Previous

44 / 154