Skip to content
anthropics avatar

Clean Data Xls

Clean messy spreadsheet data by trimming, recasing, converting types, standardizing dates, and deduplicating rows.

CCM score
71 of 100
skills.sh installs
2.2K
GitHub stars
41.6K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers the cleanup flow in order: scope, issue detection, proposed fixes, then applying changes with confirmation at each step
  • Detects whitespace, casing, numbers stored as text, mixed date formats, duplicates, blanks, mixed-type columns, mojibake, and error values
  • Prefers helper-column formulas such as =TRIM(A2) and =DATEVALUE(D2) over overwriting originals, keeping transformations auditable
  • Designed for prepping spreadsheet data before analysis, with a Office JS path inside Excel and a Python/openpyxl path for .xlsx files

Install

$ npx -y skills add anthropics/financial-services --skill clean-data-xls -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Clean Data

Clean messy data in the active sheet or a specified range.

Environment

  • If running inside Excel (Office Add-in / Office JS): Use Office JS directly (Excel.run(async (context) => {...})). Read via range.values, write helper-column formulas via range.formulas = [["=TRIM(A2)"]]. The in-place vs helper-column decision still applies.
  • If operating on a standalone .xlsx file: Use Python/openpyxl.

Workflow

Step 1: Scope

  • If a range is given (e.g. A1:F200), use it
  • Otherwise use the full used range of the active sheet
  • Profile each column: detect its dominant type (text / number / date) and identify outliers

Step 2: Detect issues

Details

Repository
github.com/anthropics/financial-services
Categories
Office Files & Slides, Data Science & Analytics
First seen
Jun 3, 2026

Questions

What does the clean-data-xls skill do to messy spreadsheet data?

It trims whitespace, fixes inconsistent casing, converts numbers stored as text, and standardizes mixed date formats. It also removes duplicates and flags columns with mixed types before analysis.

How do I install clean-data-xls?

Run npx -y skills add anthropics/financial-services --skill clean-data-xls -y in a project. Once installed, the agent can clean a sheet when you ask it to clean this data or normalize this data.

Does clean-data-xls change my original data?

It prefers formulas such as TRIM or VALUE written into adjacent helper columns, so originals stay intact. It asks for confirmation before destructive steps like removing duplicates or overwriting values.

Which spreadsheet environments does clean-data-xls support?

Inside Excel it uses Office JS directly, and on a standalone .xlsx file it uses Python with openpyxl. It works on the active sheet or a range you specify.

More from anthropics/financial-services

All 35

Similar to Clean Data Xls

More Office Files & Slides