← All guides
Spreadsheets & Data Beginner Calc workbook verified

Clean a messy spreadsheet — the review-first way

Clean a messy spreadsheet with an AI-assisted, review-first workflow you can fully audit.

PMG recommends this when a file has mixed dates, duplicates, or missing values.

Before

Messy input: 13 rows with mixed case, stray spaces, several date formats, a duplicate, an email conflict and missing values, across all 7 columns (Company, Contact, Email, Signup Date, Plan, Seats, Notes).

Swipe sideways to see more →

After

Clean result: 5 normalised rows — title-case names, lowercase emails, ISO dates, mapped plans, integer seats — all 7 columns shown.

What you get: 13 messy rows → 5 clean rows, 7 sent to human review, 1 strict duplicate removed. Nothing guessed, nothing lost.

Time
Not measured yet
Level
Beginner
Steps
5
Works on
Phone · Laptop

What you need

  • Works with a spreadsheet app and an AI assistant. Equivalent formulas are available in Google Sheets, Excel and LibreOffice Calc; separators, cell references and menu paths may vary.

Good to know

  • Validated in LibreOffice Calc (desktop): the decision workflow is computed by real formulas and reconciles 13 = 5 + 7 + 1. See the crops below.
  • Google Sheets (web) is an unverified variant. Excel is an unverified variant.
  • The AI-assisted diagnostic step has not yet been executed end to end in this validation environment; the prompt is provided for you to run.
  • This is a controlled demonstration on one sample file — not a universal data-cleaning engine. For very large files (10k+ rows), build the recipe on a sample, then apply it yourself.
Calc workbook verified

The cleanup decisions are computed by real formulas in a LibreOffice Calc workbook and independently checked. This is a workbook check, not a full-tutorial validation.

  1. LibreOffice Calc formula bar showing the Class IF formula, and the Class column with CLEAN, DUPLICATE, REVIEW values.

    LibreOffice CalcThe Class column is computed by the sheet: CLEAN / REVIEW / DUPLICATE.

  2. LibreOffice Calc REVIEW sheet with two Globex rows, Seats 12 and 25 both present.

    LibreOffice CalcBoth Globex rows (Seats 12 vs 25) kept in REVIEW — conflict, nothing lost.

  3. LibreOffice Calc CLEAN_OUTPUT sheet with 5 normalised rows.

    LibreOffice CalcThe 5 clean, analysis-ready rows.

Reconciles: 13 = 5 clean + 7 review + 1 duplicate.

Limits.

Start the guide →
Clean a messy spreadsheet — the review-first way 1/5

Work on a copy — never the original.

Do this: Make a copy of the file (Sheets: File → Make a copy; Excel/LibreOffice: File → Save a Copy). Do all cleaning on the copy; keep the original untouched as your rollback.

The messy 13-row copy, all 7 columns visible: mixed case, spaces, mixed dates, a duplicate, an email conflict, missing values.

Swipe sideways to see all columns →

You have two files: the untouched original and the copy you'll clean.

More details

Why this matters. If a step goes wrong, the original is your rollback. Cleaning in place is the most common way people lose data.