Flash Fill in Excel automatically completes a column when it recognizes a pattern in examples you provide. In Excel for Microsoft 365 on Windows, enter the result you want beside your source data, then press Ctrl+E or choose Data > Flash Fill; check the completed values before relying on them.
What Flash Fill Does
Flash Fill is a pattern-recognition feature for turning existing text or numbers into a different layout. You show Excel an example of the result, and Excel attempts to apply the same transformation to the other rows. It is especially handy for one-time cleanup tasks that would otherwise require manual editing or a formula.
For example, if column A contains “Maya Chen” and you type “Maya” beside the first name, Flash Fill may infer that you want the first name from each full name. It can also combine pieces from multiple columns, change capitalization, or reformat a phone number. The feature supplies values; it does not create a formula that stays connected to the source.
Flash Fill is not the same as AutoFill. AutoFill extends a series, copies formulas, or repeats cell contents when you drag the fill handle. Flash Fill looks at examples and tries to infer a text pattern. It is also different from Find and Replace, which applies a specified replacement rather than interpreting a transformation.
How Flash Fill Recognizes a Pattern
Excel examines the example you entered and nearby data to infer what result you intend. If a column contains consistent full names and your example is a first name, the pattern may be clear. If the source data varies, the same example can have more than one plausible interpretation. A short name could be a first name, a last name, or a word taken from somewhere else in the cell.
That is why the feature is best understood as an assistant, not as a rule you have formally defined. It can make a useful prediction quickly, but it does not know the business meaning of your data. Review its output, especially when values are inconsistent, contain extra spaces, or follow several formats.
Flash Fill normally uses neighboring columns as clues. Put the desired output in a column next to the source when possible, and keep the relevant source fields close together. A clear heading can help you stay organized, but the transformation itself is inferred from the examples rather than from the heading.
How to Use Flash Fill Step by Step
- Arrange the source data in rows, with one record per row. Add an empty column beside the source column or columns you want to transform.
- In the first output cell, type the result you want for the first record. For example, beside “Maya Chen,” type “Maya” if you want first names.
- Move to the next output row and begin entering the second example if Excel has not already shown a suggested completion. Two examples can make an unclear pattern easier to recognize.
- When Excel displays a preview of the remaining values, inspect it. If the preview is correct, press Enter to accept it.
- If no preview appears, select the output cell where you want the fill to begin and press Ctrl+E, or choose Data > Flash Fill. Check the filled column for mistakes and exceptions.
On Windows, Ctrl+E is the standard Flash Fill shortcut. On Mac, use Data > Flash Fill if you are unsure which shortcut your Excel build or keyboard setup supports; Control+E is also available in many desktop versions. Excel for the web may not show the same command in every environment, so open the workbook in the desktop app if Flash Fill is unavailable.
Useful Examples
These examples illustrate the kinds of patterns Flash Fill can infer. The source data should be reasonably consistent, and the results should be checked before you use them in a report or import.
- Split a name: With full names in one column, type a first name or surname in the next column and ask Flash Fill to continue the pattern. Names with middle names, suffixes, or different word orders may need separate handling.
- Combine fields: If a row has a first name and surname in separate columns, enter a combined example such as “Maya Chen.” Flash Fill may produce the same kind of combined text for the other rows.
- Standardize phone numbers: Type one number in the punctuation style you want, such as “(212) 555-0147,” and see whether Excel can apply that appearance to the rest. Treat phone numbers as identifiers, not quantities; formatting and leading zeros deserve particular attention.
- Extract part of an email address: An example showing the text before the at sign may prompt Excel to extract that portion from other addresses. Check addresses with unusual formats or extra spaces.
- Change text case: An example in the capitalization you want may help Flash Fill reproduce that style for other entries, though inconsistent source text can produce inconsistent results.
Prepare Data and Check the Results
Before filling, make sure the rows line up: each output should correspond to the correct source record. Sort or filter the complete table rather than a single column, or records can become mismatched. Remove irrelevant nearby columns if they could make the intended pattern less obvious, and avoid blank rows in the middle of the data when practical.
After Flash Fill runs, scan the beginning, middle, and end of the output, as well as any rows that look unusual. Compare the result with the source on rows containing compound names, punctuation, blank cells, or different number formats. For a large dataset, use filters or sorting to bring exceptions together for review.
Flash Fill returns ordinary cell values rather than a live transformation. If a source name changes later, the corresponding filled name will not automatically update. Keep the original source column until you have verified the output and no longer need to retrace the changes. If you need to preserve only the result elsewhere, copy it and use Paste Special > Values.
Limits and Common Problems
The most frequent issue is that Excel does not recognize the pattern. Add a second clear example, check that your output column is next to the source, and trigger Flash Fill again. If it still does not work, select the intended output cells and use Data > Flash Fill. A mixed dataset may require separate examples or a more explicit method.
A second common problem is plausible but incorrect output. For instance, splitting every full name at the first space will not correctly identify surnames in every naming convention. Similarly, a phone number stored as a number may already have lost a leading zero. Flash Fill cannot restore information that is no longer present in the source.
Excel has an option to turn automatic Flash Fill suggestions on or off. In Windows desktop Excel, look under File > Options > Advanced, in the Editing options area, for “Automatically Flash Fill.” If suggestions are disabled, you can still try the Data tab command or Ctrl+E. The exact settings layout can differ on Mac, so use the Data tab command there.
To undo a fill immediately, use Ctrl+Z on Windows or Command+Z on Mac. If you have made more changes since then, undo may also reverse those changes, so inspect the workbook before continuing. Flash Fill does not run a macro, and it does not provide a way to refresh its results from changed source values.
Flash Fill Compared With Formulas and Text to Columns
Choose Flash Fill when you need a quick, one-off transformation and the output is easy to verify. Its main advantage is convenience: you describe the result with an example instead of constructing a formula. Its main tradeoff is that the transformation is not documented as a reusable rule and the results do not update when the input changes.
Use a formula when you need a repeatable result that should respond to edits, or when the logic must be explicit and consistent across changing data. A formula can be easier to audit and fill down a large table, but it takes more setup and must suit the data’s structure. For complicated or irregular text, a formula or a deliberate manual review can be safer than relying on a guessed pattern.
Text to Columns is another option when a field has a consistent delimiter, such as a comma or a space, and you want to split it into separate columns. In desktop Excel for Windows, find it under Data > Text to Columns. It walks you through a defined split rather than inferring what an example means. For repeated data-import work, Power Query can provide a more repeatable set of transformation steps.
Frequently Asked Questions
What is the shortcut for Flash Fill in Excel?
In Excel for Microsoft 365 on Windows, press Ctrl+E to run Flash Fill. You can also select Data > Flash Fill. On Mac, use Data > Flash Fill if the shortcut differs in your setup; Control+E works in many desktop versions.
Why is Flash Fill not working?
Excel may not see a clear pattern, the source data may be inconsistent, or automatic suggestions may be turned off. Try entering a second example, keeping the output beside the source, and running Data > Flash Fill manually.
Does Flash Fill update when the original data changes?
No. Flash Fill places values in cells; it does not create a live link or formula. If the source changes, run Flash Fill again or use a formula-based approach when results need to update automatically.
Can Flash Fill split first and last names?
Often, yes, when names follow a consistent pattern. It can make mistakes with middle names, compound surnames, suffixes, or different name orders, so inspect the output and use a more explicit method if the distinctions matter.
Is Flash Fill available in Excel for Mac?
Flash Fill is available in desktop Excel for Mac. Use the Data tab’s Flash Fill command; shortcut behavior can vary by version and keyboard setup. If the command is missing in a web session, try opening the workbook in desktop Excel.
When Flash Fill Is the Right Choice
Flash Fill is most useful for a small, visible cleanup task: provide a clear example, let Excel suggest the rest, and verify the results before using them. For messy source data, recurring updates, or transformations that must be consistent and auditable, prefer a defined formula, Text to Columns, or Power Query. The right choice depends on whether speed or a reusable rule matters more.
Related
- Excel Text to Columns Shortcut: Windows and Mac
- Excel Text to Columns: Split Cells at Line Breaks Easily
- Excel Text to Columns by Word: Methods That Work
Try it: the Date Difference Calculator: days, months, years and weekdays between two dates, with the DATEDIF formulas.
More in How-to basics
- Flash Fill Practice Sheet: Excel Drills and AnswersTo practice Flash Fill in Excel for Microsoft 365 on Windows, put source data beside an empty column,…
- Remove Checkboxes in Google Sheets Without Losing DataTo remove a checkbox in Google Sheets, select the cell or range, choose Data > Data validation, select…
- Compare Two Excel Sheets: Find Differences Step by StepTo compare two Excel sheets, use a cell-by-cell formula when corresponding cells line up, or match records by…
- Excel Dropdown List With Checkboxes: What WorksA standard Excel dropdown list cannot contain checkboxes: a Data Validation list lets you pick one item at…
- Change the Folder Pane View in OutlookTo change the folder pane in Outlook for Windows, select View > Folder Pane, then choose Normal, Minimized,…
- IFERROR in Google Sheets: Meaning and How to Use ItIn Google Sheets, IFERROR checks whether a formula produces an error and lets you show a different value…
Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources
Spotted an error in this guide? Let us know.