Flash Fill in Excel (Ctrl+E): split names and reformat data without formulas
Flash Fill (Ctrl+E) fills a column from your example: split first and last names, format phone numbers, build emails. When it works and when it guesses wrong.
You receive 800 names like “Aziz Karimov”, but the report needs first and last names in separate columns. No formulas required: type “Aziz” in the first row, press Ctrl + E, and Excel fills the other 799 rows.
Flash Fill (available since Excel 2013) works out the rule behind your example: “the part before the first space”, “the last 4 digits”, “capitalized”. It is the fastest way to clean up and reformat data.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Full name | First name | Last name | |
| 2 | Aziz Karimov | Aziz1 | Karimov2 | |
| 3 | Dilnoza Rahimova | Dilnoza | Rahimova | |
| 4 | Javohir Tursunov | Javohir | Tursunov | |
| 5 | Malika Yusupova | Malika | Yusupova | |
| 6 | Sardor Aliyev | Sardor | Aliyev | |
| 7 |
Splitting first and last names
1
In the empty column next to the data (B), type the first result by hand: Aziz in B2. The column must touch the data — no empty column in between.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Full name | First name | Last name | |
| 2 | Aziz Karimov | Aziz1 | ||
| 3 | Dilnoza Rahimova | |||
| 4 | Javohir Tursunov | |||
| 5 | Malika Yusupova | |||
| 6 | Sardor Aliyev | |||
| 7 |
2
Start typing the next first name in B3. If Excel has spotted the rule, a grey preview appears in the remaining rows — press Enter and everything is filled.
3
No preview? Select B3 and press Ctrl + E, or click Flash Fill in the Data Tools group on the Данные tab.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Full name | First name | Last name | |
| 2 | Aziz Karimov | Aziz | ||
| 3 | Dilnoza Rahimova | Dilnoza | ||
| 4 | Javohir Tursunov | Javohir | ||
| 5 | Malika Yusupova | Malika | ||
| 6 | Sardor Aliyev | Sardor | ||
| 7 |
4
A Flash Fill Options icon appears next to the filled cells: you can undo the result or select the changed cells. Selecting them is handy for a review.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Full name | First name | Last name | |
| 2 | Aziz Karimov | Aziz | ||
| 3 | Dilnoza Rahimova | Dilnoza | ||
| 4 | Javohir Tursunov | Javohir | ||
| 5 | Malika Yusupova | Malika | ||
| 6 | Sardor Aliyev | Sardor | ||
| 7 |
5
Same for last names: type Karimov in C2, select C3 and press Ctrl + E. Each column is filled separately.
What else Flash Fill can do
- Combine: “Karimov” + “Aziz” → “Karimov A.” or “aziz.karimov@firma.uz”.
- Format: 901234567 → (90) 123-45-67; “tashkent” → “Tashkent”.
- Extract: 0417 or 2025 from “INV-2025-0417”; a house number from an address; the domain from an email.
- Reorder: “Aziz Karimov” → “Karimov Aziz”.
- Date parts: 15.01.2025 → “January 2025” (if you type the example that way).
The more complex the rule, the more examples it needs: one is enough for simple cases; for tricky ones, type 2–3 rows by hand.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | First | Last | Short | ||
| 2 | Aziz | Karimov | Karimov A. | aziz.karimov@firma.uz | |
| 3 | Dilnoza | Rahimova | Rahimova D. | dilnoza.rahimova@firma.uz | |
| 4 | Javohir | Tursunov | Tursunov J. | javohir.tursunov@firma.uz | |
| 5 | Malika | Yusupova | Yusupova M. | malika.yusupova@firma.uz | |
| 6 |
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Phone | Formatted | Code | Number | |
| 2 | 901234567 | (90) 123-45-67 | INV-2025-0417 | 0417 | |
| 3 | 935557788 | (93) 555-77-88 | INV-2025-0418 | 0418 | |
| 4 | 977001122 | (97) 700-11-22 | INV-2024-1203 | 1203 | |
| 5 | 998887766 | (99) 888-77-66 | INV-2025-0021 | 0021 | |
| 6 |
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Full name | Last name | ||
| 2 | Aziz Karimov | Karimov | ||
| 3 | Dilnoza Rahimova | Rahimova | ||
| 4 | Abdulla Qodiriy o‘g‘li | o‘g‘li1 | ||
| 5 | Malika Yusupova | Yusupova | ||
| 6 |
Pro level: Flash Fill or a formula?
Flash Fill is for one-off cleanup: an imported list, formatting before you send something. Fast and formula-free, but it never updates.
A formula is for a table whose data keeps changing. For first and last names:
- First name:
=ЛЕВСИМВ(A2;НАЙТИ(" ";A2)-1)— everything before the first space. - Last name:
=ПСТР(A2;НАЙТИ(" ";A2)+1;100)— everything after the first space. - Easier in Excel 365:
=ТЕКСТДО(A2;" ")and=ТЕКСТПОСЛЕ(A2;" ").
Two more tips: if Flash Fill doesn’t kick in automatically, check File → Options → Advanced → Automatically Flash Fill. And if you don’t trust the result, compare it with a formula: =B2=ЛЕВСИМВ(A2;НАЙТИ(" ";A2)-1) — rows showing FALSE are suspicious.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Full name | First name | Last name | |
| 2 | Aziz Karimov | Aziz | Karimov | |
| 3 | Dilnoza Rahimova | Dilnoza | Rahimova | |
| 4 | Javohir Tursunov | Javohir | Tursunov | |
| 5 |
Try it in the simulator
The simulator has no Flash Fill, so build the formula version. Type =ЛЕВСИМВ(A2;НАЙТИ(" ";A2)-1) in B2 and =ПСТР(A2;НАЙТИ(" ";A2)+1;100) in C2, then fill both down to row 5.
| 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 | Full name | First name | Last name | |||||||||||||||||||||
| 2 | Aziz Karimov | |||||||||||||||||||||||
| 3 | Dilnoza Rahimova | |||||||||||||||||||||||
| 4 | Javohir Tursunov | |||||||||||||||||||||||
| 5 | Malika Yusupova | |||||||||||||||||||||||
| 6 | ||||||||||||||||||||||||
| 7 | ||||||||||||||||||||||||
| 8 | ||||||||||||||||||||||||
| 9 | ||||||||||||||||||||||||
| 10 |
Has ExcelLab been useful?
Support the project and help us release new lessons and exercises.