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.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Full name | Last name | First name | Patronymic | |
| 2 | Aliyev Aziz Karimovich | Aliyev | Aziz | Karimovich | |
| 3 | Karimova Dilnoza Rustamovna | Karimova | Dilnoza | Rustamovna | |
| 4 | Yusupov Javohir Alisherovich | Yusupov | Javohir | Alisherovich | |
| 5 | Rahimova Malika Baxtiyorovna | Rahimova | Malika | Baxtiyorovna | |
| 6 |
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 Данные → Текст по столбцам.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Full name | Last name | First name | Patronymic | |
| 2 | Aliyev Aziz Karimovich | ||||
| 3 | Karimova Dilnoza Rustamovna | ||||
| 4 | Yusupov Javohir Alisherovich | ||||
| 5 | Rahimova Malika Baxtiyorovna | ||||
| 6 |
2
Wizard step 1: choose Delimited — use it when the parts are separated by a space, comma or another character. Click Next.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Full name | Last name | First name | Patronymic | |
| 2 | Aliyev Aziz Karimovich | ||||
| 3 | Karimova Dilnoza Rustamovna | ||||
| 4 | Yusupov Javohir Alisherovich | ||||
| 5 | Rahimova Malika Baxtiyorovna | ||||
| 6 |
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.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Full name | Last name | First name | Patronymic | |
| 2 | Aliyev Aziz Karimovich | ||||
| 3 | Karimova Dilnoza Rustamovna | ||||
| 4 | Yusupov Javohir Alisherovich | ||||
| 5 | Rahimova Malika Baxtiyorovna | ||||
| 6 |
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.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Full name | Last name | First name | Patronymic | |
| 2 | Aliyev Aziz Karimovich | ||||
| 3 | Karimova Dilnoza Rustamovna | ||||
| 4 | Yusupov Javohir Alisherovich | ||||
| 5 | Rahimova Malika Baxtiyorovna | ||||
| 6 |
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.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Source | Code | Product | Date | |
| 2 | 00125;Tea;15.01.2025 | 00125 | Tea | 15.01.2025 | |
| 3 | 00348;Rice;03.02.2025 | 00348 | Rice | 03.02.2025 | |
| 4 | 01020;Sugar;10.02.2025 | 01020 | Sugar | 10.02.2025 | |
| 5 |
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.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Name | Last name | First name | |
| 2 | Aliyev Aziz | Aliyev | Aziz | |
| 3 | Karimova Dilnoza | Karimova | Dilnoza | |
| 4 | Yusupov Javohir | Yusupov | Javohir | |
| 5 |
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.
| 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 | |||||||||||||||||||||
| 2 | Aliyev Aziz | |||||||||||||||||||||||
| 3 | Karimova Dilnoza | |||||||||||||||||||||||
| 4 | Yusupov Javohir | |||||||||||||||||||||||
| 5 | Rahimova Malika | |||||||||||||||||||||||
| 6 | Toshpulatov Sardor | |||||||||||||||||||||||
| 7 | ||||||||||||||||||||||||
| 8 | ||||||||||||||||||||||||
| 9 | ||||||||||||||||||||||||
| 10 |
Has ExcelLab been useful?
Support the project and help us release new lessons and exercises.