New for Excel 2013 and 2016 is a feature called Flash Fill. This feature compares what you are typing in a blank column to data in neighboring columns. If it sees a pattern, then it offers suggestions (in gray) for the rest of the column. Press ENTER to accept all of the suggestions at once.
This is very helpful if you want to change the formatting of the data - upper case, lower case, punctuation.
Flash Fill can also help you split data into separate cells or merge data from several cells together. You enter what you want to see in the first few cells of a blank column as an example and Flash Fill shows a preview of what it can do for the rest of the column, in gray. It's not a perfect guesser but it is certainly very smart.
The actions that Flash Fill does could be done in previous versions of Excel by using formulas. But such formulas can get complex pretty quickly. It's much easier to provide two or three examples and let Flash Fill complete the rest!
![]() |
Step-by-Step: Flash Fill Data |
![]() |
What you will learn: | to apply Flash Fill automatically to apply Flash Fill manually to use Flash Fill on column adjacent to data to use Flash Fill on column NOT adjacent to data to use Flash Fill to combine data to use Flash Fill to split data |
Start with: flashfill.xlsx from the resource files
Warning: Type accurately. Flash Fill will not see a pattern if you mis-type the data!
To get some practice, you will use a resource file instead of the sheet on trips for World Travel Inc.
When typing in a lot of text, it is easy to get the capitalization or spacing messed up. Flash Fill can help with that, but you must create a new column for the revised data.
Save as
flashfill-Lastname-Firstname.xlsx to the excel project2 folder of your Class disk.
Notice that Column D has some lower case and some upper case. For these few it would be easy to retype. But suppose there were 3000 records to inspect and fix. Flash Fill was made for just this kind of situation.
Press the ENTER key.
All of the suggestions are accepted.
Alternate Method: Click on the check mark button on the formula bar. Your typing is accepted but the selection does NOT move.
Inspect the new Middle Initial values.
There is a period when there was no middle initial in the original columns. Interesting but odd. There is another way to get what we want.
Sometimes Flash Fill does not show you a preview list or the list vanishes before you can accept the suggestions. On the Data ribbon tab, the Flash Fill button will become active (no longer grayed out) once Excel is ready to guess what the pattern is.
For some reason Flash Fill understands what you just did with the upper case letter followed by a period better than with no period. This will give you a chance to use the Flash Fill button.
Click the Flash Fill button.
The values in the original column are duplicated. This could be useful in the right situation but not this time.
Undo.
Now we can try to get Flash Fill to make changes.
Right click on the selection and click on Delete.
The column is removed.
Warning: DELETE Key vs. Delete Command
The DELETE key removes the contents of the cell but leaves the column in place.
The Delete command removes the whole column.
Save.
[flashfill-Lastname-Firstname.xlsx]
Phone numbers do not behave like numbers since you cannot do arithmetic with them. So data cells for phone numbers should be formatted as Text or General.
Phone numbers can be formatted in several different ways, like 345-555-3214 or (345) 555-3214 or 345.555.3214. Flash Fill can make it easy to change the way your spreadsheet displays a phone number, no matter how many rows of records you have.
You will format the phone numbers with parentheses in a column directly beside the data column. Those characters are text. These numbers are fiction, of course. In the USA numbers with 555 in the middle are never assigned to real people or businesses. This allows books, movies, TV shows (and computer lessons!) to use these 555 numbers without having to worry about whose phone number it really is. So smart of someone to think of doing that!
In cell G4 start to type the phone number that is in F4.
As soon as you type the first parenthesis, Flash Fill shows a preview of its suggestions. The parenthesis is a text character so Flash Fill knows it is allowed to make a guess.
Problem: Flash Fill did not provide suggestions
Solution: Type the next phone number in cell G5. Flash Fill needed more data to create a pattern. Excel 2016 does this.
Problem: All area codes are the same
This is an example of the kind of error that can occur when you have done a lot of entering, editing, and/or deleting in the column. Flash Fill has gotten confused.
Solution 1: Keep typing characters in your second example. You may have to use the Flash Fill button on the Data ribbon tab to get the suggestions.
Solution 2: Delete the revised numbers and start over. Be sure the cells have General format.
Press the ENTER key to accept all of the suggestions.
The rest of the rows are filled in with the same format.
An Options buttons appears near the third cell of data.
Right click on the selection and choose Delete.
The column vanishes and Column G moves left to become the new column F.
Save.
[flashfill-Lastname-Firstname.xlsx]
The data column(s) you are using with Flash Fill do not have to be directly next to the blank column. But they do need to be within the data range or adjacent to it. Let's try another version of the phone number in a different column to show this.
On the Data tab, click the button Flash Fill .
A message appears instead of suggestions. Flash Fill does not see a pattern. The data range is too far away.
Next you will insert a blank column that is inside the data range, but it is not adjacent to the data that it is using for Flash Fill.
In B4 type the phone number as 465.555.8913 and press ENTER.
FlashFill does NOT provide suggestions. Apparently with this arrangement. FlashFill thinks you are typing numbers. FlashFill does not work for numbers.
Or Flash Fill may offer a format with the first five numbers followed by #. That pattern would be from including the header, Home #.
Click on the Flash Fill button.
The cells are filled in by Flash Fill without the 'preview' showing first.
The Flash Fill Options button shows up so you can change your mind if the entries are not what you wanted.
Problem: Flash Fill error message - No pattern
Solution 1: Inspect the examples that you entered and make sure that you typed correctly!
If you mistyped a character, Excel will not be able to figure out the pattern. Make corrections and try the button again.
Solution 2: Enter more examples to more clearly show Excel what the pattern is.
In this exercise Excel should not need more examples but in other situations three or even four examples may be necessary to make the pattern clear.
Save.
[flashfill-Lastname-Firstname.xlsx]
Sometimes you want to see a complete name instead of parts of a name. Flash Fill can put the parts together for you. If some records are missing a part, a second effort by Flash Fill can help.
Click the check mark button on the Formula bar or press ENTER.
The period is automatically removed from the other instance, Nathaniel Peebles. Sweet!
Save.
[flashfill-Lastname-Firstname.xlsx]
Sometimes your data comes to you in a combined form when you need to sort or group it on a part. Flash Fill may be able to help out, if your data is similar enough throughout the column. You cannot use Flash Fill on two or more columns at once. You must handle each part that you are splitting off separately.
In this section you will split the new Name column back into separate columns. What will Flash Fill do with the names that only have two parts?? Let's see!
Press ENTER to accept the suggestions.
Tip: Suggestion List Vanished
If you lose the list of suggestions before you can press ENTER, go to the Data ribbon tab and click on the Flash Fill button. If that button is grayed out, use ENTER or the down arrow to move to a blank cell in the current column. The button should become available.
In cell D4 type the middle initial G.
Flash Fill offers suggestions, including something unexpected for the two names that do not have a middle initial.
It is not clear what pattern Excel thinks that it has found!
Similarly, use Flash Fill to fill in column E, Last.
Whoops. Two last names are missing.
Problem: Flash Fill does not offer suggestions; Flash Fill button suggestions are wrong
Solution: Delete Column E completely and insert a fresh column. Type in the title, Last, and try again.
Press ENTER.
Peebles is also filled in in row 11.
All last names are properly in place!
Save and Close the spreadsheet.
[flashfill-Lastname-Firstname.xlsx]
From these few examples, you can see how helpful Flash Fill can be but also how careful you must be to inspect the results.