Data Cleaning Tools: Flash Fill, Text to Columns & Deduplication
Overview & Learning Objectives
When you need to reformat 5,000 phone numbers, extract cities, or eliminate duplicate customers, formulas can sometimes be overkill. Flash Fill (Ctrl + E) learns your pattern from 1 example, and Remove Duplicates ensures a clean unique list in seconds.
- Format messy phone numbers into standard `+91 XXXXX XXXXX` in 1 second using Flash Fill.
- Split comma-separated values into columns using the Text-to-Columns wizard.
- Safely deduplicate master customer lists without deleting legitimate repeated orders.
Industry Standard
Standard: Operations analysts clean raw CRM dumps with Flash Fill and deduplication before running monthly customer retention and cohort analytics.
Real-World Example: Spice Bazaar Contact Directory
At Spice Bazaar, customer phone numbers are entered inconsistently: `9876543210`, `+91-9876543210`, `98765 43210`. Typing one clean example and pressing Ctrl + E reformats all 500 numbers instantly.
| Raw Customer Entry | Type 1 Example | Press Ctrl + E (Flash Fill Result) | Status |
|---|---|---|---|
| 9876543210 | +91 98765 43210 | +91 98765 43210 | Formatted |
| 9123456789 | +91 91234 56789 | Auto-Filled | |
| 9988776655 | +91 99887 76655 | Auto-Filled | |
| 9876543210 (Duplicate) | +91 98765 43210 | Flagged Duplicate |
Flash Fill & Deduplication Workflow
Type desired output in adjacent column -> Press Ctrl + E -> Review pattern
Parameters Breakdown
Ctrl + E (Flash Fill): AI pattern detection that matches and applies your formatting down the entire column.Text to Columns: Data Tab -> Text to Columns -> Delimited (Comma, Tab, Space, Other).Remove Duplicates: Data Tab -> Remove Duplicates -> Select unique key column (e.g. Phone Number).
Sample Walkthrough (Q&A):
Question: How do you extract the city from "Rohit Sharma - Bengaluru" for 1,000 rows in 2 seconds?
Formula / Action: In cell B2, type "Bengaluru", press Enter, and press Ctrl + E.
Result: Excel instantly extracts the city name for all 1,000 rows.
Explanation: Flash Fill recognizes that you want the text following the hyphen separator.
Common Mistakes & Limitations
- Assuming Flash Fill updates automatically when source data changes (Flash Fill produces static text, not dynamic formulas).
- Running Remove Duplicates without selecting the entire table, which misaligns columns.
Keyboard Shortcuts
| Action | Windows | Mac |
|---|---|---|
| Trigger Flash Fill | Ctrl + E | Ctrl + E (or Data Ribbon) |
| Open Text to Columns | Alt + A + E | Data Ribbon |
| Remove Duplicates | Alt + A + M | Data Ribbon |
Pro Tips & Modern Alternatives
- Use Flash Fill for quick one-time cleanups; use formulas (TEXTBEFORE, TEXTSPLIT) if the sheet updates regularly.
- Always keep a backup copy of your raw sheet before running Remove Duplicates.