fx Text & Date Functions

Flash Fill — extraction by pattern, without formulas

⏱ 9 min

What you'll learn

  • Teach Flash Fill a pattern with varied examples.
  • Audit middle names, extra spaces and single-word names.
  • Distinguish static filled values from formulas that recalculate.

Concept

Available in Excel 2013 and later.

1. How it works

You show Excel the pattern once; it repeats it for the whole column.

A B
1 Full Name First Name
2 Rahul Sharma Rahul
3 Neha Gupta
4 Ravi Kumar Singh
  1. Type Rahul in B2.
  2. Select B3 and press Ctrl + E (or Data → Flash Fill).
  3. Excel fills Neha, Ravi.

2. Things Flash Fill does well

Source You type Flash Fill gives
Rahul Sharma Sharma, Rahul Gupta, Neha ...
rahul sharma Rahul Sharma proper case for all
9876543210 98765-43210 same format for all
rahul.sharma@gmail.com rahul.sharma usernames
Rahul Sharma RS initials
INV-2026-0457 0457 serial numbers

It can also combine columns: with first name in A and city in B, type Rahul - Delhi in C2 and press Ctrl + E.

3. When it guesses wrong

If the pattern is unclear, Flash Fill may guess wrong — for example, middle names in "Ravi Kumar Singh" when you wanted the last name. Fix it by correcting one wrong cell; Excel re-learns the pattern from your correction. Giving 2–3 varied examples up front helps.

4. The big limitation: it's static

Flash Fill types values, not formulas. If the source data changes, the result does not update. So:

  • One-time data cleanup → Flash Fill is perfect.
  • A sheet that gets new data every month → use formulas (Lesson 1 and 2).

5. Always check the results

Flash Fill never shows an error; it just fills. Scroll through the output, especially rows that look different from the rest (extra spaces, three-word names, missing values).

6. If Ctrl + E does nothing

Make sure the example column is right next to the data (no empty column between). Check File → Options → Advanced → "Automatically Flash Fill" is on.

Common mistakes

Using Flash Fill on data that will change later. Not checking unusual rows. Leaving a blank column between the source and the example.

Exercises

mediumFrom 10 full names and emails, use Flash Fill to create: first name, last name, initials, username (before @), and a "Last, First" column. Then change one source name and notice that the Flash Fill result doesn't update.
On Flash Fill, row 2 contains examples. Run Data → Flash Fill (Ctrl+E on Windows) separately in B:E and G. Use the first token as first name, final token as surname, and every token for initials. Ravi Kumar Singh becomes Ravi / Singh / RKS / Singh, Ravi. For Sonal, leave surname empty and use S and Sonal; check that exception manually. Usernames come from the part of F before @. Change Rahul to Rohan in A2: the filled outputs remain unchanged until corrected or filled again. Flash Answers contains the target values; Flash Fill itself must be run in Excel.

Quiz

Flash Fill shortcut?
Ctrl + E
Source changes after Flash Fill — does the result update?
No, it's static
Best use of Flash Fill?
One-time data cleanup and reformatting
Flash Fill — extraction by pattern, without formulas · Foundations | ExcelWalaa