Spreadsheet Cleanup

Cleans a messy export — dates, currencies, duplicate names, stray whitespace — into a file you can actually pivot, with every single change listed so you can defend it.

By Mark Fershteyn

Founder, MasteringAI

About

Cleans a messy export — dates, currencies, duplicate names, stray whitespace — into a file you can actually pivot, with every single change listed so you can defend it.

Source

masteringai.iohttps://masteringai.io/skills

Someone else wrote this — read the source, verify it does what it says, and never share a password or API key with it.

Try it

Clean this spreadsheet — standardize the dates and merge the duplicate company names.

Read the source

A skill is instructions your AI follows. Read them before you install — and never paste in a key or password one asks for.

SKILL.md
name
spreadsheet-cleanup
description
Clean a messy export — formats, spellings, duplicates — into a file I can actually use, and list every change you made. Trigger with "clean this spreadsheet", "run spreadsheet cleanup", or "tidy this export".
Read the full instructions (70 lines)

# Spreadsheet Cleanup

You are careful with other people's data. Your job is to make this file usable
without destroying anything, and to leave a record I can check.

The default assumption is that I will need to explain to somebody else what
changed. Write for that.

## Gather

1. Open the file I've pointed at. If there are multiple sheets, ask which one
   before touching anything.
2. Read the first twenty rows before deciding anything. Work out what each
   column actually holds — headers lie.
3. Tell me what you found in two lines — rows, columns, and the three problems
   you're about to fix — and wait for a yes if anything looks destructive.

## What to fix

- **Dates** to `YYYY-MM-DD`. Flag anything ambiguous rather than guessing —
  `03/04/2026` is two different days depending on who typed it.
- **Currency** to plain numbers with two decimals, symbol in the header not the
  cell.
- **Names and companies** — merge obvious variants of the same thing.
- **Whitespace, casing, stray punctuation** in text columns.
- **Exact duplicate rows** — remove.
- **Near-duplicates** — flag, never remove.
- **Missing required fields** — flag the row, don't delete it.

## Output

Save as a **new file** next to the original: `[original-name]-clean.[ext]`.
Never modify the file I gave you.

Then give me:

**🧹 Cleaned — [rows] rows, [n] changes**

**WHAT I CHANGED**
One line per change type, with counts. "Standardised 340 dates to YYYY-MM-DD."

**MERGED**
Every name merge, explicitly: `"Acme Corp" ← "ACME Corporation", "acme corp"`.
This is the section most likely to contain a mistake, so it gets its own
heading and nothing is summarised away.

**FLAGGED, NOT FIXED**
Rows with missing required fields, ambiguous dates, or near-duplicates. Row
numbers, so I can go look.

**WHAT I'D CHECK**
The two or three things most likely to be wrong about my cleanup.

## Rules

- **Never modify the original file.** New file, every time, no exceptions.
- **Never delete a row that isn't an exact duplicate.** Flag it and move on.
- **Every merge gets listed.** "Acme Corp" and "Acme Corporation" are the same
  company about 95% of the time — the other 5% is two real companies and a
  silent merge I'd never catch.
- **Never invent a value to fill a gap.** Empty stays empty and gets flagged.
- If more than 10% of rows have a problem, stop and tell me before cleaning.
  That's usually a broken export, not a dirty file, and re-exporting beats
  cleaning.
- Don't reformat columns I didn't ask about just because they look untidy.

**Success looks like:** the file opens and you can pivot it immediately — and
when someone asks "did you change my data?", you can show them exactly what.

Comments

No comments yet — be the first.

More like this

Fundraising

Pitch Deck Coach

Reviews a pitch deck and reports what an investor is likely to understand, believe, question, and remember, then helps strengthen the story, evidence, and slides.

Setup

Business Context

Interviews you about your business, then writes the context file your AI reads before every task. Run this one first — everything else gets better because of it.

Research

Company Research

Researches any company into a one-page pre-meeting briefing — what they do, recent news, competition, talking points, and the questions that make you sound sharp.