What Flash Fill Does and When to Use It
Flash Fill is a feature in Excel that watches what you type in a column, recognizes the pattern, and offers to fill the rest of the column for you. You type one or two examples of what you want, Excel suggests the pattern it sees, and you press Enter to accept. It works best when you have a clear, repeating pattern — like splitting a full name into first and last names, reformatting dates, extracting numbers from text, or combining data from multiple columns.
Flash Fill is available in Excel 2013 and later on Windows, and Excel 2016 and later on Mac. It does not work in Excel Online or in Google Sheets. The feature saves time on repetitive text tasks, but it only works when the pattern is consistent enough for Excel to recognize — if your data is messy or the pattern changes partway through, Flash Fill may not catch it.
Key Takeaways
- Flash Fill activates when you type an example in a new column and Excel recognizes a repeating pattern from your existing data.
- You trigger Flash Fill by typing your first example, pressing Enter, then typing a second example — Excel usually suggests the pattern after the second entry.
- If Excel does not suggest automatically, you can manually trigger Flash Fill by pressing Ctrl+E (Windows) or Cmd+E (Mac).
- Flash Fill works best on consistent patterns like name splitting, date reformatting, or combining columns, but fails on irregular or messy data.
Setting Up Your Data and Starting Flash Fill
Open your spreadsheet and identify the column you want to work with. Flash Fill works on data that already exists — you cannot use it to fill a column from scratch. For example, if you have a column of full names and want to extract just the first names, that full-name column must already be there.
Click on the cell in the new column where you want the filled data to appear. This should be the column immediately next to or near your source data, though it does not have to be. Type your first example of what you want — if you are extracting first names from "John Smith", type "John". Press Enter to move to the next cell down.
Type your second example in the cell below. Excel needs at least two examples to recognize a pattern. After you press Enter, Excel will usually display a blue suggestion showing what it thinks the rest of the column should be. If you see that suggestion, press Ctrl+E (Windows) or Cmd+E (Mac) to accept it. If no suggestion appears, type a third example and try the keyboard shortcut again.
Accepting or Rejecting Flash Fill Suggestions
When Excel shows a blue suggestion, it is showing you what it would fill if you accept. Look at a few cells in the suggestion to make sure the pattern is correct before you press the shortcut key. If the suggestion looks wrong, press Escape to reject it and try a different approach.
Once you press Ctrl+E or Cmd+E, Excel fills the entire column with the pattern it recognized. The filled cells are now permanent — they are not formulas, they are static text. If you need to change the source data later, the Flash Fill results will not update automatically.
Common Patterns Flash Fill Handles Well
Flash Fill works reliably on splitting names. If you have "John Smith" and you type "John" in the first cell and "Jane" in the second (from "Jane Doe"), Excel recognizes that you want the first name and fills the rest. The same logic applies to extracting last names, middle initials, or any consistent position within text.
Flash Fill also handles date reformatting. If your dates are in "01/15/2024" format and you want "January 15, 2024", type one or two examples and Flash Fill usually catches the pattern. It can also combine data from multiple columns — if you have a first-name column and a last-name column and you type "John Smith" as an example, Flash Fill will combine the rest.
Extracting numbers or removing characters works too. If you have "Order #12345" and you want just "12345", type that in your first example cell. Flash Fill will find and extract the number from the rest of the column. The same applies to removing prefixes, suffixes, or special characters when the pattern is consistent.
Why Flash Fill Fails and What to Do Instead
Flash Fill stops working when your data is inconsistent. If some names are "First Last", others are "Last, First", and still others are just a single name, Excel cannot find a single pattern and will not suggest anything. In these cases, you need to clean your data first — sort it so all the same format is together, or use a formula instead.
Messy data also breaks Flash Fill. If some cells have extra spaces, different capitalization, or missing information, Excel may not recognize the pattern clearly enough. You can clean the data using Find and Replace (Ctrl+H on Windows, Cmd+H on Mac) to standardize spacing and formatting before you try Flash Fill.
When Flash Fill cannot handle the job, use a formula instead. For extracting the first name from "John Smith", you can use =LEFT(A1,FIND(" ",A1)-1) to pull everything before the space. For combining columns, use =A1&" "&B1. Formulas are more reliable on messy data and update automatically when the source changes.
Flash Fill on Mac vs. Windows
The core feature works the same way on both systems, but the keyboard shortcut differs. On Windows, press Ctrl+E to trigger Flash Fill. On Mac, press Cmd+E. If you are using Excel Online or a web version, Flash Fill is not available — you will need to use formulas or download the desktop version.
Mac users should note that Flash Fill sometimes requires you to be more explicit with your examples. If Excel does not suggest after two examples, typing a third one often helps it recognize the pattern. Windows users generally see suggestions faster, but the principle is the same.
Frequently Asked Questions
Does Flash Fill work if my data is in different columns?
Yes. If you have first names in column A and last names in column B, you can create a new column C and type "John Smith" as your first example. Flash Fill will combine the columns for the rest of the rows. It also works when extracting data from a single column that contains multiple pieces of information.
Can I undo Flash Fill if it fills the wrong pattern?
Yes. Press Ctrl+Z (Windows) or Cmd+Z (Mac) immediately after Flash Fill completes to undo it. You can then try again with different examples or switch to a formula. Once you save the file, undoing becomes harder, so check the results before you save.
What if Flash Fill suggests something but it is not quite right?
Press Escape to reject the suggestion instead of pressing the shortcut key. You can then type a third or fourth example to give Excel more information about the pattern you want, or switch to a formula that gives you exact control over the result.
Does Flash Fill work on numbers or only text?
Flash Fill works on both. You can use it to extract numbers from text like "Invoice #12345", reformat phone numbers, or pull out any numeric portion. However, if you need to do math with the numbers afterward, a formula is usually safer because Flash Fill creates static text, not true numbers.
Will Flash Fill update if I change the original data?
No. Flash Fill creates a snapshot of the pattern at the moment you accept it. If you change the source data later, the Flash Fill results stay the same. If you need results that update automatically, use a formula instead — formulas recalculate whenever the source changes.