xlsx

Create, edit, and analyze Excel spreadsheets with formulas, formatting, and recalculation.

1|Updated Mar 5, 2026
One-click install
npx skills add https://github.com/Clay-HHK/claude-skills --skill xlsx-clay-hhk
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: xlsx
Source: https://github.com/Clay-HHK/claude-skills/tree/main/xlsx
Command: npx skills add https://github.com/Clay-HHK/claude-skills --skill xlsx-clay-hhk

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires openpyxl, pandas, and includes scripts (resource) components.

What problem does it solve? Working with spreadsheets programmatically often produces broken formulas, lost formatting, or hardcoded values that break when data changes. This Skill provides structured workflows for creating, editing, and analyzing Excel files while preserving formulas, enforcing financial modeling conventions, and verifying zero formula errors. ## Core Features & Use Cases - Spreadsheet Creation & Editing: Build new workbooks or modify existing ones with openpyxl while preserving formulas and formatting, using pandas for data analysis tasks. - Formula Recalculation & Error Detection: Run the included recalc.py script with LibreOffice to recalculate all formulas and scan every cell for errors like #REF!, #DIV/0!, and #VALUE! with exact locations. - Financial Modeling Standards: Apply industry-standard color coding (blue inputs, black formulas, green cross-sheet links), number formatting, and assumption-cell conventions for professional financial models. - Use Case: Build a revenue projection model where growth rates live in assumption cells, all totals use live Excel formulas, and the final file is recalculated and verified to contain zero formula errors before delivery. ## Quick Start Create an Excel financial model from my data with formulas for totals and growth rates, then recalculate it and fix any formula errors.

Frequently Asked Questions about xlsx

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create an Excel file with formulas in Python?▼

Use openpyxl to create a workbook and assign formula strings like '=SUM(B2:B9)' directly to cells, then save the file. Always use Excel formulas instead of hardcoding Python-calculated values so the spreadsheet recalculates when source data changes.

Should I use pandas or openpyxl for Excel files?▼

Use pandas for data analysis, bulk operations, and simple exports with pd.read_excel and df.to_excel. Use openpyxl when you need formulas, cell formatting, multiple sheets, or editing existing files while preserving their structure.

How do I recalculate Excel formulas after editing with openpyxl?▼

openpyxl saves formulas as strings without computed values, so run the recalc.py script which uses LibreOffice headless to recalculate all formulas. It returns JSON with error counts and cell locations for any #REF!, #DIV/0!, or similar errors.

Why does my Excel file show #REF! or #DIV/0! errors?▼

#REF! occurs from invalid cell references and #DIV/0! from dividing by empty or zero cells. Verify cell references, check denominators before division, and run recalc.py to get exact error locations by sheet and cell.

Can openpyxl read calculated formula values from Excel?▼

Yes, load the workbook with data_only=True to read cached calculated values. However, never save a file opened this way, because formulas will be permanently replaced with their static values.