How to Use Flash Fill in Excel
Flash Fill watches the pattern in your first example and fills the rest of a column to match. Type one cleaned-up value, press Ctrl+E, and Excel infers the rule and applies it down the list. For analysts it is the quickest way to split names, pull codes out of strings, or recombine fields without writing a single text formula.
What Flash Fill does and when to use it
Flash Fill recognizes a pattern from the examples you type next to your source data and fills the remaining cells to follow it. It handles splitting one column into parts, joining several columns into one, and reformatting text such as changing case or inserting separators.
Reach for it when the transformation is regular and visual, like extracting the part before an underscore or building an email from a name. It is a one-off cleanup tool, so use it when you do not need the result to recalculate as the source changes.
Step by step
Suppose column A holds values like INV-2024-0098 and you want just the year in column B.
- In the first cell of the output column, type the result you want, for example
2024. - Move to the cell directly below it.
- Press
Ctrl+E, or go toData > Flash Fill. - Review the filled column; Excel applies the inferred pattern to every row.
- If a row is wrong, correct it and press
Ctrl+Eagain to refine the pattern. - Accept the suggestion shown, or press Esc to discard it.
| Source | You type | Flash Fill gives |
|---|---|---|
| INV-2024-0098 | 2024 | the year from each row |
| Jane Smith | Smith | the last name from each row |
| jane / smith | [email protected] | an email per row |
One clear example is usually enough; add a second if the first guess is wrong.
A model use case
A general ledger export packs the account code, period, and description into one string. Type the cleaned account code beside the first row, press Ctrl+E, and Flash Fill pulls the code out of every row so you can build a clean lookup key for the model.
Going the other way, combine separate first and last name columns into a single display field, or stitch a region and product code into one identifier. It turns minutes of formula writing into a couple of keystrokes for one-time prep.
- Splits or combines text from a single typed example.
- Press
Ctrl+Eto trigger and again to refine after a correction. - Results are static values, not live formulas.
Pitfalls and limits
Flash Fill produces fixed text, not formulas, so the output does not update when the source changes; you must run it again after edits. It also guesses, and an ambiguous pattern can fill plausible but wrong values, which is easy to miss in a long list, so always spot check.
It works best on consistent, well-structured text and struggles when rows vary in format. For anything that must recalculate or be reliably repeatable, use text functions such as LEFT, MID, TEXTSPLIT, or TEXTJOIN, or Power Query, which records the steps so they re-run on refresh.
Prepare to Share
Since Flash Fill leaves static values behind, Prepare to Share helps you check the workbook is clean and self-contained before handing it on.
Get ModelMint See how it worksFAQ
What is the keyboard shortcut for Flash Fill?
Press Ctrl+E after typing one or two example values in the column next to your data. You can also trigger it from Data > Flash Fill on the ribbon if you prefer the menu.
Why is Flash Fill not working or not appearing?
It needs a column of data directly beside your examples and a recognizable pattern. If automatic suggestions are off, enable Flash Fill in File > Options > Advanced, and make sure the source values are consistent enough for Excel to infer a rule.
Should I use Flash Fill or text formulas?
Use Flash Fill for fast one-off cleanups where the result need not update. Use text formulas like LEFT, MID, or TEXTSPLIT, or Power Query, when the transformation must recalculate as data changes or be repeated every period.