xlsx

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

Updated Jun 18, 2026
One-click install
npx skills add https://github.com/svpfahad/RES200 --skill xlsx-svpfahad
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: xlsx
Source: https://github.com/svpfahad/RES200/tree/main/claude-scientific-writer-main/.claude/skills/document-skills/xlsx
Command: npx skills add https://github.com/svpfahad/RES200 --skill xlsx-svpfahad

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires openpyxl, pandas.

What problem does it solve? Building and editing Excel workbooks programmatically often produces broken formulas, hardcoded values, and inconsistent formatting. This Skill generates dynamic spreadsheets with real Excel formulas, enforces financial-modeling formatting conventions, and recalculates formulas via LibreOffice to guarantee zero formula errors. ## Core Features & Use Cases - Spreadsheet Creation & Editing: Build or modify .xlsx/.csv files using openpyxl for formulas and formatting, and pandas for data analysis and bulk operations. - Formula Recalculation & Error Detection: Run the included recalc.py script to recalculate all formulas with LibreOffice and receive a JSON report of any #REF!, #DIV/0!, #VALUE!, or other errors with exact cell locations. - Financial Modeling Standards: Apply industry-standard color coding (blue inputs, black formulas, green cross-sheet links), number formatting rules, and documented source citations for hardcoded values. - Use Case: Build a revenue projection model where growth rates live in assumption cells, all totals use =SUM() formulas, and the final 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 write formulas as strings, such as sheet['B10'] = '=SUM(B2:B9)', then save the workbook. Always use Excel formulas instead of hardcoding Python-calculated values so the spreadsheet recalculates when source data changes.

How do I recalculate Excel formulas after editing with openpyxl?

Run the included recalc.py script with python recalc.py output.xlsx. It uses LibreOffice headless to recalculate all formulas and returns JSON reporting any errors like #REF! or #DIV/0! with their exact cell locations.

Should I use pandas or openpyxl for Excel files?

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

Why does my Excel file show formulas instead of calculated values?

openpyxl stores formulas as strings without evaluating them, so values are missing until recalculated. Run recalc.py, which configures a LibreOffice macro to recalculate and save the workbook, or open the file in Excel or LibreOffice.

What happens if I save an openpyxl workbook loaded with data_only=True?

Saving a workbook loaded with data_only=True permanently replaces all formulas with their cached values, destroying the formulas. Only use data_only=True for reading calculated values, never for files you intend to modify and save.