How to use Flash Fill in Excel (split and join text)
In Excel for Microsoft 365 / Excel 2021–2024 (verified 2026-10-24), type the pattern you want in the column beside your data (for example first name only), press Enter, then start typing the second example or press Ctrl+E (Data > Flash Fill). Excel fills the rest of the column by example.
Flash Fill is static — it does not update when source data changes. For live results use formulas or Power Query.
Applies to Excel 2013 and later, including Microsoft 365 and Excel for Mac. Excel for the web support varies — use desktop Excel when Flash Fill does not appear. Ideal for one-off cleanup before analysis.
Split a full name with Flash Fill
Example: column A has Ada Lovelace, Grace Hopper. You want first names in column B.
Show Excel the pattern
- In B2, type
Adaand press Enter. - In B3, start typing
Grace. Excel may show a grey preview of the remaining first names. - Press Enter to accept the preview, or select Data > Flash Fill, or press Ctrl+E.
Join or reformat
- To build
Lovelace, Adafrom first/last columns, type one full example, then Flash Fill. - For phone formats, type
(555) 0100as the first example matching your digits, then Ctrl+E.
Confirm and keep a backup
- Scan for wrong guesses (middle names, suffixes like Jr).
- Copy the Flash Fill column and Paste Special > Values if you need a clean snapshot.
- Keep the original column until you verify counts match.
Flash Fill vs formulas vs Text to Columns
| Job | Prefer |
|---|---|
| One-off cleanup, messy patterns | Flash Fill |
| Results must update when source changes | Formulas (LEFT/TEXTSPLIT) |
| Simple split on a delimiter | Text to Columns |
| Recurring import every week | Power Query |
Our take: Flash Fill is a scalpel for messy lists, not a substitute for a proper import pipeline.
If it fails
- Ctrl+E does nothing: enable Flash Fill under File > Options > Advanced, and ensure the sheet is not protected.
- Preview never appears: give two clear examples, or select the destination range and click Data > Flash Fill.
- Wrong pattern mid-column: undo, add a corrected second example, Flash Fill again.
- Numbers lose leading zeros: format the destination column as Text before Flash Fill.
Frequently asked questions
What is the Flash Fill shortcut?
Ctrl+E on Windows in Excel. You can also use Data > Flash Fill.
Does Flash Fill update automatically later?
No. It pastes static values. Use formulas if the source will change.
Can Flash Fill split first and last names?
Yes — type the desired first name (and optionally last name in another column) as examples, then Flash Fill.
Flash Fill vs Text to Columns?
Text to Columns is better for clean delimiters; Flash Fill handles irregular examples.
Why did Flash Fill mess up middle names?
Your examples were ambiguous. Add a clearer second example or clean outliers manually.