FinanceFinancial Modelling

Data Cleaning For Excel

Turns pasted or exported data with mixed formats, blank rows, or duplicates into a clean, consistently formatted range ready for analysis. Use it right after pasting raw data into a worksheet.

AAndrew Oria·Finance·MIT

Library skill — the default version is maintained in GitHub; edits you make live in your own clone.

Use this skillDownload .zip
How does this work?
  • ChatGPT opens a new chat with the skill loaded. If it's too long for a link, it's copied to your clipboard — just paste.
  • Claude works the same way. To install it permanently, download the .zip and upload it under Claude → Settings → Capabilities → Skills (Pro/Team/Enterprise).
  • Copy prompt copies the skill so you can paste it into any assistant, including Grok.

Data Cleaning for Excel

When to use

Use this immediately after pasting or importing raw data, a CSV export, a copy from another system, or a table copied out of a document, before you build a pivot table or a formula on top of it.

Instructions

  1. Identify inconsistent formats within the same column (text numbers next to real numbers, mixed date formats, inconsistent casing).
  2. Remove or flag exact duplicate rows, stating the rule used to define a duplicate.
  3. Standardize blank cells: distinguish a true zero from a missing value and handle each consistently.
  4. Trim stray whitespace and normalize inconsistent category labels that clearly refer to the same thing.
  5. Convert text-formatted numbers and dates to their proper Excel types so formulas can use them.
  6. Report what was changed, row by row where practical, so the cleaning is auditable.

Example prompts

Output

A cleaned, consistently formatted range, plus a short change log describing what was standardized, removed, or converted.