← Back to library

Have Claude build Excel files that recalculate cleanly

Anthropic's xlsx skill tells Claude how to create, edit and check Excel workbooks: write formulas instead of computed totals, recalculate with LibreOffice and fix every error before delivery, document assumptions, and follow common model formatting. Anthropic moved it to the Apache 2.0 license on November 6, 2026. We explain when it helps and its limits.

  • OutcomeGive Claude the xlsx skill so that any spreadsheet it creates or edits keeps live formulas instead of pasted results, passes a full recalculation with zero formula errors before delivery, labels every assumption with its source, and follows standard financial model conventions or the existing file's own styling.
  • SetupMinutes
  • LevelIntermediate
  • CreditAnthropic
View original
Works with
ClaudeClaude CodeClaude Cowork

Published Nov 7, 2026Updated Nov 7, 2026AI dry run on sample input: passed Nov 7, 2026Source verified Nov 8, 2026

When should you use it?

  • You ask Claude for budgets, forecasts or trackers and need the cells to keep working when inputs change
  • An existing workbook needs new rows or columns without breaking its formulas or styling
  • Messy CSV exports need cleaning into a proper workbook for a client or accountant

Not for: Google Sheets built through its API, which the skill itself says to handle differently; Jobs whose end product is a Word report or web page rather than a spreadsheet file; Workbooks linked to other files you cannot provide, since re-saving can break those links

What do you need, and what do you get?

You need

  • Claude with skills enabled (claude.ai, Claude Code or Claude Cowork) and the xlsx skill installed
  • The source data or existing workbook
  • Your spec: tab names, column headers and any formulas you want used

You get

  • An .xlsx file whose totals and projections are formulas that update with their inputs
  • A recalculation report with zero formula errors
  • Each assumption in a separate named input cell, with a note on where the number came from
  • Model formatting: input cells in blue, formulas in black, negatives in parentheses

How does it work, step by step?

  1. Install the skillAdd the xlsx skill from Anthropic's skills repository, or confirm it is already enabled in your Claude workspace.
  2. Write a precise specName the tabs, headers and key formulas. The skill tells Claude to follow your spec literally, so vague requests get literal guesses.
  3. Let it recalculateAsk Claude to run the bundled recalculation script and show you the error count before it hands over the file.
  4. Spot-check the logicOpen the file and test two or three formulas against numbers you know, since an error-free sheet can still point at the wrong row.
  5. Keep your conventionsWhen editing an older workbook, tell Claude which cells are inputs; the skill says the file's own styling wins over its defaults.

The prompt

Our adapted version, written to work in Claude, Claude Code and Claude Cowork. Values in lime are placeholders.

Fill in the blanks (optional; the copied prompt uses your values)

Prompt5 variables
Using the xlsx skill, build {workbook_name}.xlsx from {source_data}.
Tabs: {tab_names}. Columns: {headers}.
Every total, growth figure and projection must be a formula that references its inputs; give each assumption ({assumptions}) a separate, clearly named input cell with a note on where it came from.
Run the recalculation check, fix anything it reports, and tell me the formula count and error count before you hand over the file.
Then list three cells I should spot-check by hand.

The original skill is published by Anthropic on Anthropic. Open it there to install or import it; the prompt above is our own adaptation.

What can go wrong?

  • Zero errors is not the same as correct. A range that stops one row short still produces clean but wrong totals, so check a few results by hand.
  • Newer Excel functions such as XLOOKUP or FILTER may not survive the LibreOffice check. The skill steers Claude toward older equivalents.
  • Re-saving a workbook with links to other files can strip those links. Copy the linked values first or keep the original.
  • Percentages stored as whole numbers will show as 1500% instead of 15%. Confirm the format on any rate cells.

Our take

Most complaints about AI-built spreadsheets come down to one habit: the model calculates a total in its head and types the number into the cell. The file looks right until someone changes an input and nothing moves. Anthropic's xlsx skill attacks that directly by requiring formulas, then forcing a full recalculation and an error count before the file is handed over. We also like its honesty about limits. It warns that a clean recalculation shows the formulas run, not that they reference the right cells, and it lists the newer Excel functions that will break in the checking step. For accountants and analysts, the default model formatting (inputs in blue, formulas in black, assumptions in their own labeled cells) makes a draft reviewable at a glance. The license change on November 6 matters because these Office skills were previously not open source; teams can now adapt them freely. In our dry run, a three-year revenue projection came back with every year driven by a growth-rate cell and zero formula errors.

Where the time goes back: A workbook that recalculates correctly the first time saves the hour usually spent hunting hardcoded totals and #NAME errors in an AI-built file before it can go to a client or your accountant.

FAQ

Is the skill free to use and adapt?
Yes. Anthropic relicensed the docx, pdf, pptx and xlsx skills under Apache 2.0 on November 6, 2026, the same license as most skills in its public repository.
Do I need Excel installed?
No. The skill uses Python libraries and LibreOffice inside Claude's environment to write and recalculate the file; you open the result in Excel or any compatible app.
Does it work for financial models specifically?
It includes default model conventions: blue for hardcoded inputs, black for formulas, green for links between sheets, years stored as text and each assumption kept in a separate cell, unless your workbook already follows other conventions.

Source and credit

This playbook is based on work by Anthropic. We summarize it and link to it and write our own adapted prompt.

Original
xlsx skill (anthropics/skills)
Creator
Anthropic
Published on
Anthropic
License
Apache-2.0
Originally for
Claude
AI dry run
Nov 7, 2026: passed. Dry-run tested by our AI test agent on sample input. Formulas only, zero errors after recalculation, assumptions labeled with sources, model color and number conventions applied.
AI dry run on sample data; not run with live connected accounts. The playbooks.bot test agent filled the prompt with synthetic inputs, produced the output and checked it against the page's stated outputs and guardrails.
Verified
Nov 8, 2026: source link resolves to the original, the credited creator published it, our excerpt or prompt matches it, and the license allows our use.

The original is licensed under Apache-2.0 by Anthropic. Modified: our adapted prompt and summary are our own wording; the original skill {"was unchanged at the source when we snapshotted it (live source later removed)" if src_removed(s) else "is unchanged at the source link"}.

Are you the creator? Claim or correct this page.

More in Finance & Accounting

All 62 Finance & Accounting playbooks →

Related playbooks

Finance & AccountingWorkflow✓ AI dry run

Auto-file emailed invoices by month for your accountant

Every invoice that reaches Gmail is saved as a PDF in a year and month folder in Google Drive and logged in that month's sheet, ready to share with your accountant at month end.

Credit: Ioana Frincu

Under an hour
Finance & AccountingPrompt✓ AI dry run

Build your own CRE underwriting model with a coding agent

An Excel cash-flow model shaped around how you underwrite, built and extended with a coding agent instead of outsourced runs of a rigid tool.

Credit: u/rajuabju on r/ClaudeAI

Under an hour
Finance & AccountingRoutine✓ AI dry run

Reconcile orders and draft invoices every night

Scheduled prompts check orders against the CRM, draft invoices for review and file contracts.

Credit: Sunnyvale (@SunnyvaleSBay)

An afternoon+
Finance & AccountingSkill✓ AI dry run

Review a client's portfolio drift and draft a rebalance memo

For one household or account, pull holdings and performance, measure drift against the IPS or model, prepare tax-aware rebalance ideas for the advisor to weigh, and write a rationale memo for the compliance file.

Credit: Anthropic

An afternoon+
Finance & AccountingWorkflow✓ AI dry run

Turn emailed invoices into rows on a finance sheet

Watch a mailbox for invoice PDFs, extract the key fields with OCR and an LLM, and append categorized rows to a spreadsheet that powers a simple dashboard.

Credit: u/alexsafari1 on r/n8n

An afternoon+