xlsx

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

1|Updated Feb 18, 2026
One-click install
npx skills add https://github.com/Cramer-69/skills-repository-3af2d1c7 --skill xlsx-cramer-69
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: xlsx
Source: https://github.com/Cramer-69/skills-repository-3af2d1c7/tree/main/packages/claude/skills/xlsx
Command: npx skills add https://github.com/Cramer-69/skills-repository-3af2d1c7 --skill xlsx-cramer-69

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 that can't update, and formatting that violates financial modeling conventions. This Skill provides structured workflows for building dynamic Excel files with zero formula errors and industry-standard formatting. ## Core Features & Use Cases - Spreadsheet Creation & Editing: Build new workbooks or modify existing ones with openpyxl while preserving formulas and formatting. - Formula Recalculation & Error Detection: Use the recalc.py script with LibreOffice to recalculate formulas and scan all cells for errors like #REF!, #DIV/0!, and #VALUE!. - Financial Modeling Standards: Apply color coding (blue inputs, black formulas, green cross-sheet links), number formatting, and assumption documentation conventions. - Use Case: Build a revenue projection model where growth rates live in assumption cells, all calculations use Excel formulas, and the file is recalculated and verified error-free 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. After saving, run the recalc.py script with LibreOffice to calculate the 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 with pd.read_excel and df.to_excel. Use openpyxl when you need formulas, complex formatting, cell styles, or to modify existing workbooks while preserving their structure.

Why do my openpyxl formulas show no calculated values?▼

openpyxl writes formulas as strings but never evaluates them, so cells lack cached values. Run recalc.py, which uses a LibreOffice macro to recalculate all formulas and save the results back into the file.

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

Run recalc.py on the file; it returns JSON listing each error type with cell locations like Sheet1!B5. Fix invalid references for #REF!, check denominators for #DIV/0!, then recalculate again until the status is success.

Does editing an Excel file with openpyxl preserve existing formulas?▼

Yes, loading with load_workbook preserves formulas and formatting when you save. However, opening with data_only=True and saving permanently replaces formulas with their cached values, so avoid that mode for edits.