xlsx

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

2|1|Updated Apr 26, 2026
One-click install
npx skills add https://github.com/dkyazzentwatwa/skill_starter_pack --skill xlsx-dkyazzentwatwa
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: xlsx
Source: https://github.com/dkyazzentwatwa/skill_starter_pack/tree/main/xlsx
Command: npx skills add https://github.com/dkyazzentwatwa/skill_starter_pack --skill xlsx-dkyazzentwatwa

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve? Working with spreadsheet files programmatically often produces broken formulas, hardcoded values, or inconsistent formatting. This Skill ensures every .xlsx, .xlsm, .csv, or .tsv deliverable uses live Excel formulas, passes error checks, and follows professional formatting conventions. ## Core Features & Use Cases - Spreadsheet Creation & Editing: Build new workbooks or modify existing ones using openpyxl for formulas and formatting, or pandas for data analysis and bulk operations. - Formula Recalculation & Error Detection: Run the included recalc.py script to recalculate all formulas via LibreOffice and get 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, and assumption documentation for financial models. - Use Case: A user provides a messy CSV export and asks for a clean financial summary. The Skill restructures the data, adds SUM and growth-rate formulas, applies currency formatting, recalculates, and verifies zero formula errors before delivery. ## Quick Start Use the xlsx skill to clean up the attached sales-export.csv and turn it into a formatted spreadsheet with totals and growth-rate formulas.

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 into cells, such as sheet['B10'] = '=SUM(B2:B9)'. 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, styles, or edits to existing workbooks while preserving their structure.

Why do openpyxl formulas show no calculated values?

openpyxl stores formulas as strings but does not evaluate them. Run the included recalc.py script, which uses LibreOffice headless to recalculate all formulas and reports any Excel errors with their cell locations as JSON.

How do I fix #REF! and #DIV/0! errors in generated spreadsheets?

Run recalc.py on the file and inspect the JSON error_summary, which lists each error type with cell locations like Sheet1!B5. Fix invalid references, guard divisions against zero denominators, then recalculate again until the status is success.

Can openpyxl read calculated values from an existing workbook?

Yes, load the workbook with data_only=True to read cached calculated values. Do not save from that object, because saving with data_only=True permanently replaces formulas with their values.