xlsx

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

8|3|Updated Oct 20, 2025
One-click install
npx skills add https://github.com/chongdashu/claude-code-skills-demo --skill xlsx-chongdashu
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: xlsx
Source: https://github.com/chongdashu/claude-code-skills-demo/tree/main/.claude/skills/document-skills/xlsx
Command: npx skills add https://github.com/chongdashu/claude-code-skills-demo --skill xlsx-chongdashu

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve? Working with spreadsheets programmatically often leads to broken formulas, hardcoded values, and formatting inconsistencies. This Skill provides structured workflows for creating, editing, and analyzing Excel files (.xlsx, .xlsm, .csv, .tsv) while preserving formulas, enforcing financial modeling conventions, and guaranteeing zero formula errors. ## Core Features & Use Cases - Spreadsheet Creation & Editing: Build new workbooks or modify existing ones with openpyxl while preserving formulas, styles, and template conventions. - Formula Recalculation & Error Detection: Use the bundled recalc.py script with LibreOffice to recalculate all formulas and scan every cell for errors like #REF!, #DIV/0!, and #VALUE!. - Financial Modeling Standards: Apply industry-standard color coding (blue inputs, black formulas, green cross-sheet links), number formatting, and assumption documentation. - Data Analysis: Read and analyze spreadsheet data with pandas for statistics, filtering, and bulk operations. - Use Case: Build a three-statement financial model where all projections use live Excel formulas referencing assumption cells, then recalculate and verify the workbook contains zero formula errors before delivery. ## Quick Start Ask the assistant to create an Excel financial model with revenue projections using formulas, then recalculate and verify it has no 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. After saving, run the recalc.py script with LibreOffice to calculate formula values, since openpyxl stores formulas without evaluating them.

Should I use pandas or openpyxl for Excel files?

Use pandas for data analysis, bulk operations, and simple exports; use openpyxl for complex formatting, formulas, and Excel-specific features. pandas reads data into DataFrames quickly, while openpyxl preserves cell styles and formula definitions.

Why do my openpyxl formulas show no calculated values?

openpyxl writes formulas as strings without evaluating them, so cells appear empty when read with data_only=True. Run the recalc.py script, which uses LibreOffice headless mode to recalculate all formulas and save the computed values.

How do I fix #REF! and #DIV/0! errors in Excel files?

Run recalc.py on the file to get a JSON report listing each error type with cell locations. Fix invalid cell references for #REF! errors and add denominator checks for #DIV/0! errors, then recalculate again to verify.

Does editing an Excel file preserve its existing formulas?

Yes, loading a workbook with openpyxl's load_workbook preserves formulas and formatting by default. Avoid opening with data_only=True before saving, since that permanently replaces formulas with their cached values.