# clean-data-xls

> Claude/Codex skill by [@anthropics](https://omgskills.com/library/anthropics/index.md) · 39k stars · Updated 2026-09-21

Clean up messy spreadsheet data — trim whitespace, fix inconsistent casing, convert numbers-stored-as-text, standardize dates, remove duplicates, and flag mixed-type columns. Use when data is messy, inconsistent, or needs prep before analysis. Triggers on "clean this data", "clean up this sheet", "normalize this data", "fix formatting", "dedupe", "standardize this column", "this data is messy".

## Install

```sh
tmp="$(mktemp -d)" && { git clone -q --filter=blob:none --no-checkout https://github.com/anthropics/financial-services "$tmp" && git -C "$tmp" checkout -q 574ed3624aebd0418c7e96cd101262f30210ab26 && { [ ! -L ~/.claude/skills/clean-data-xls ] || rm ~/.claude/skills/clean-data-xls; } && { [ ! -e ~/.claude/skills/clean-data-xls ] || { echo "~/.claude/skills/clean-data-xls already exists; move it away to reinstall." >&2; false; }; } && mkdir -p ~/.claude/skills/clean-data-xls && cp -R "$tmp/plugins/vertical-plugins/financial-analysis/skills/clean-data-xls/." ~/.claude/skills/clean-data-xls/; ok=$?; rm -rf "$tmp"; [ "$ok" = 0 ]; }
```

## From README

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.

## Links

- HTML page: https://omgskills.com/library/anthropics/financial-services/clean-data-xls/
- GitHub: https://github.com/anthropics/financial-services
- Author: [@anthropics](https://omgskills.com/library/anthropics/index.md)

## More from this repo

- [comps-analysis](https://omgskills.com/library/anthropics/financial-services-plugins/fsi-comps-analysis/index.md) — Used to build institutional-grade comparable company analyses with operating metrics, valuation multiples, and...
   - [@anthropics](https://omgskills.com/library/anthropics/index.md) · 40k stars
- [thesis-tracker](https://omgskills.com/library/anthropics/financial-services-plugins/thesis-tracker/index.md) — Maintain and update investment theses for portfolio positions and watchlist names.
   - [@anthropics](https://omgskills.com/library/anthropics/index.md) · 40k stars
- [bond-futures-basis](https://omgskills.com/library/anthropics/financial-services/bond-futures-basis/index.md) — Used to analyze the bond futures basis by pricing futures, identifying the cheapest-to-deliver, and comparing with...
   - [@anthropics](https://omgskills.com/library/anthropics/index.md) · 39k stars
