Contents

Chapter 1

The 12-Step Data Cleaning Checklist

A repeatable process for turning any messy export into an analysis-ready table. Run it

top to bottom every time and you'll never again wonder "did I forget something?" The steps

map directly onto the tabs in this workbook; worked numbers match the sample data.

Golden rule: never clean in place. Keep the raw export on its own tab (`01-Dirty

Data`) and build everything else from it. If a step goes wrong, you can always start over

from the original.


Before you start: profile the data

Spend two minutes seeing what you're dealing with before changing anything.

  • Row & column count: =ROWS(A:A) and eyeball the headers.
  • Distinct values per categorical column: =UNIQUE(E2:E23) shows every spelling of

Country at once โ€” the fastest way to spot USA / U.S.A. / Unites States.

  • Blanks per column: =COUNTBLANK(C2:C23).
  • Obvious junk: sort each column ascending and descending and look at the extremes.

This tells you which of the steps below you actually need.


Step 1 โ€” Trim whitespace

Leading, trailing, and double spaces are the most common (and most invisible) defect. TRIM

fixes all three.

=TRIM(B2)

" john SMITH " โ†’ john SMITH; "Aisha Khan" โ†’ Aisha Khan. Test it with

=EXACT(B2, TRIM(B2)) โ€” any FALSE had hidden spaces.

Step 2 โ€” Fix capitalization

Pick one convention per column. Names โ†’ PROPER; emails and codes โ†’ LOWER; country/state

abbreviations โ†’ UPPER.

=PROPER(TRIM(B2))     =LOWER(TRIM(C2))     =UPPER(TRIM(StateCode))

Watch the PROPER edge cases (McDonald, iPhone, O'Connor is fine) and fix the few

exceptions by hand.

Step 3 โ€” Standardize formats (phone, date, currency)

Make every value in a column look identical:

  • Phone: strip non-digits, take the last 10, rebuild โ†’ (555) 207-3322.
  • Date: =TEXT(DATEVALUE(F2), "yyyy-mm-dd") collapses four input formats into one.
  • Currency: =VALUE(SUBSTITUTE(SUBSTITUTE(G2,"$",""),",","")) turns "$3,450.50" into

a real number 3450.5.

A column you can't SUM or SORT correctly isn't clean yet.

Step 4 โ€” Normalize categorical values

Map every variant to one canonical value using the Normalization Map and XLOOKUP. After

this step, COUNTIF(Country, "United States") returns the true count instead of being split

across eight spellings.

Step 5 โ€” Split or combine fields

One value per cell. Split Full_Name into first/last with SPLIT/TEXTSPLIT if you need to

sort by surname; combine City + State only for display, never for storage.

Step 6 โ€” Handle missing values deliberately

Decide per column โ€” don't leave it to chance:

  • Required field blank (e.g. email) โ†’ flag the row for follow-up, don't invent data.
  • Optional field blank โ†’ fill with an explicit "Unknown" / "N/A" so blanks don't

masquerade as zero. =IF(TRIM(H2)="", "Unknown", H2).

  • Numeric blank โ†’ usually leave truly empty (so it's excluded from AVERAGE), *not* 0.

Step 7 โ€” Fix data types

Numbers stored as text are the classic silent bug (they left-align and break SUM). Force

the type: =VALUE(text) for numbers, =DATEVALUE(text) for dates. Confirm with =ISNUMBER.

Step 8 โ€” Validate against rules

Apply the checks from 04-Validation Rules as columns. A master flag โ€”

=IF(COUNTIF(RuleCols, FALSE)=0, "OK", "Needs review") โ€” turns the sheet into a self-audit.

Fix or quarantine every Needs review row before moving on.

Step 9 โ€” Deduplicate

Only now, with formats normalized, is your match key reliable. Build it, flag duplicates with

the running COUNTIF, and filter to Keep. In the sample this drops records 19โ€“22 and

leaves 18 unique customers.

Order matters: clean before you dedup. "[email protected] " and

"[email protected]" only collapse into one once Steps 1โ€“2 have run.

Step 10 โ€” Spot outliers and errors

Run the descriptive statistics. An IQR fence test (Q1 โˆ’ 1.5ยทIQR, Q3 + 1.5ยทIQR) flags

values that deserve a second look. In the sample it catches ORD-1031 at $20,000. An outlier

isn't automatically wrong โ€” it might be a real whale of a deal โ€” but every one earns a

"is this right?" check before you report an average.

Step 11 โ€” Sanity-check the totals

Reconcile. Does the cleaned row count make sense (22 raw โˆ’ 4 dupes = 18)? Does the pivot

grand total equal the sum of the source rows ($87,449.00 both ways)? Does spend per

customer look plausible? A number that doesn't tie out is a bug, not a feature.

Step 12 โ€” Document and freeze

  • Note what you did (which columns, which rules) in a README cell or tab โ€” future-you will

thank you.

  • When a cleaned column is final, Paste Special โ†’ Values to freeze it and keep the file

fast.

  • Save the empty version as a template so next month is paste-and-drag.

The one-screen version

#StepTool
1Trim whitespaceTRIM
2Fix casePROPER / LOWER / UPPER
3Standardize formatsphone/date/currency formulas
4Normalize categoriesXLOOKUP + map
5Split / combine fieldsSPLIT / &
6Handle blanksIF(...="", ...)
7Fix data typesVALUE / DATEVALUE
8Validaterule columns + master flag
9Deduplicatematch key + COUNTIF / UNIQUE
10Find outliersQUARTILE + IQR fences
11Reconcile totalsSUM cross-checks
12Document & freezePaste Special โ†’ Values

Pin this list next to your monitor. Cleaning data well is not about cleverness โ€” it's about

running the same boring checklist every single time.

Questions about applying this to your data? Email [email protected].

Chapter 2
๐Ÿ”’ Available in full product

Pivot Table Recipes

Chapter 3
๐Ÿ”’ Available in full product

Customization Guide โ€” Data Cleaning Templates

Chapter 4
๐Ÿ”’ Available in full product

Getting Started โ€” Data Cleaning Templates

Chapter 5
๐Ÿ”’ Available in full product

Import Guide โ€” Data Cleaning Templates

Chapter 6
๐Ÿ”’ Available in full product

Data Cleaning Templates โ€” Formula Reference

Chapter 7
๐Ÿ”’ Available in full product

The 12-Step Data Cleaning Checklist

Chapter 8
๐Ÿ”’ Available in full product

Pivot Table Recipes

You’ve reached the end of the free preview

Get the full Data Cleaning & Analysis Templates and unlock everything.

All Chapters

Get the complete guide with every chapter unlocked, including code samples, diagrams, and best practices.

Full Tool Suite

Access all interactive tools with complete data, all workload profiles, and the full scenario library.

Source Files

Downloadable source code, configuration files, and working examples from every chapter.

Lifetime Updates

Free updates for life. Every new chapter, tool, and improvement included.

Buy Now — $29 →
๐Ÿ“ฆ Free sample included — download another copy or visit the store for the full product.
Data Cleaning & Analysis Templates v1.0.0 โ€” Free Preview