Analysts spend most of their time cleaning data, not analysing it. Real spreadsheets arrive with duplicates, inconsistent formats, values crammed into one column and text pretending to be numbers. This chapter is the toolkit to fix all of that quickly.
The 80% job
Bad data quietly ruins every downstream formula and chart. A disciplined clean-up pass — dedupe, split, standardise, fix types — is the difference between a reliable model and a misleading one.
Removing duplicates
- Data → Remove Duplicates deletes repeated rows (pick which columns define a duplicate).
- To find duplicates without deleting, use
=COUNTIF(range, cell) > 1or Conditional Formatting → Duplicate Values.
Splitting & combining columns
- Data → Text to Columns splits "Aanya Kapoor" or a CSV cell into separate columns by a delimiter.
- Combine back with
&orTEXTJOIN(Chapter 9).
Flash Fill
Flash Fill (Ctrl+E) is magic: type the result you want for the first row or two, and Excel detects the pattern and fills the rest — extracting first names, reformatting phone numbers, building emails, all without a formula:
Column A: Aanya KapoorYou type: Aanya (in column B)Press Ctrl+E → Excel fills Rohan, Priya, … extracting every first name.
Common fixes
| Problem | Fix |
|---|---|
| Hidden spaces break matches | =TRIM() (and =CLEAN() for junk chars) |
| Numbers stored as text | =VALUE(), or multiply by 1 |
| Inconsistent case | =PROPER()/UPPER()/LOWER() |
| #N/A from a bad lookup | Wrap in IFERROR |
| Dates as text | =DATEVALUE() |
Practice
Take a messy sheet: remove duplicate rows, split a "Full Name" column with Text to Columns, use Flash Fill to build email addresses, and fix a column of numbers-stored-as-text with VALUE. Confirm a SUM now works on the fixed column.
Key takeaways
- 01Most analysis time is cleaning — dedupe, split, standardise and fix types before modelling.
- 02Remove Duplicates deletes repeats; COUNTIF > 1 or conditional formatting finds them.
- 03Text to Columns splits by a delimiter; & / TEXTJOIN combine.
- 04Flash Fill (Ctrl+E) reshapes by example — great one-off, but a static snapshot.
- 05Fix common issues with TRIM, VALUE, PROPER, IFERROR and DATEVALUE; use Power Query for repeatable cleaning.
