FlashFill : Manipulate Text in Excel without formula

Merge cells

You want to merge two cells, like Firstname and Lastname, for more than 100 rows... What do you do?

Copy them one by one? 🤔 That's the idea, but this is where AI helps you: Excel "understands" the pattern you write and fills in the other cells for you. Magic? No — FlashFill. 😀

For example, we want to combine the first name and the last name.

  1. Select the cell adjacent to the table (the tool should be attached to the data table)
  2. Write the result you want: 'HAYLOM Simon'
  3. Go to the next line
  4. Start typing the first letters of the last name — here, just M
  5. Excel automatically suggests a list based on the first value you entered
  6. If the list matches what you want, just confirm by pressing Enter
  7. That's it! You've combined the first and last names for all the other cells. 👍
Merge NAME and Firstname

FlashFill is case-sensitive (uppercase/lowercase).

In this new example, we want the first and last names in lowercase.

Merge firstname and lastname

Merge with more complex input

FlashFill also lets you create more elaborate combinations than just merging the contents of two cells. For example, here we write the last name followed by the initial of the first name and a period.

Merge LASTNAME and Capital FirstName

It's also possible to create even more complex combinations. Here, FlashFill didn't correctly understand the rule on the first try. By filling in a second cell, we helped it understand the pattern, and then it worked. 😀

Merge Title and Lastname and city

Sometimes, you must fill two, three, or four cells to help FlashFill understand your pattern.

Worked example: does FlashFill update itself if you fix a mistake?

Column F below was generated with FlashFill.

Column F generated with FlashFill

Now imagine you notice a mistake in A9 and B9, so you correct it. Will column F be updated automatically?

Impact on the result with FlashFill

No — FlashFill does not update changes. The transformation is only performed once, at the time of entry. If you change a cell afterward, you must delete the previous result and run FlashFill again.

Extract text with FlashFill

FlashFill is also excellent for extracting specific parts of text, such as substrings of characters.

  • We're going to extract the last name in column D
  • And the first name in column E

No worries! Simply specify the desired outcome, and let FlashFill handle the task effortlessly.

Extract firstname and lastname

It's also great for efficiently extracting specific substrings, like zip codes from addresses.

Extract zipcode

Usage limits

In some situations, FlashFill isn't able to understand the extraction logic on the first try.

For instance, in this situation:

  • The first two extractions return some mistakes
  • So we correct one of the mistakes — row 5, for instance
  • This helps FlashFill improve the rules for extracting data
  • Then, our extraction is perfect
Complex extract many attempts

Force FlashFill to return the result

In some situations where FlashFill doesn't automatically suggest a list, you can "force" the result.

  1. Extract street numbers, avenue names, etc.
  2. On the second entry, the list was briefly displayed
  3. Use the fill handle (the value 70 is copied for all the cells)
  4. Then click the fill options button
  5. Choose the Flash Fill option
  6. The list of house numbers is perfect. 😀👍
Force the FlashFill

You can get the same result with the keyboard shortcut Ctrl + E.

Using Numbers with FlashFill

FlashFill can also convert some numbers.

For instance, here, we want to put the first three digits of each phone number in parentheses. No problem for FlashFill. 😀👍

Format phone number

This only works, however, when you treat your numbers as text (a string).

FlashFill cannot be used to perform calculations, as illustrated in this example.

No calculation with FlashFill

FlashFill with dates

FlashFill cannot be used to process dates and times. For instance, attempting to associate dates and times in Excel using FlashFill results in an error message.

FlashFill doesn't work with the dates

This is because FlashFill is designed for text manipulation — including numbers treated as text, like postal codes or phone numbers.

FlashFill is one of Excel's most efficient tools for merging, extracting, and reformatting text without writing a single formula — as long as you remember it only works on text patterns entered once, not on live formulas, dates, or calculations.

Continue learning

Keep building your Excel skills with the rest of this tutorial series: