xlsx

Create, edit, and recalculate Excel spreadsheets with formulas using openpyxl and LibreOffice.

Updated May 15, 2026
One-click install
npx skills add https://github.com/danielbere1973/promoar --skill xlsx-danielbere1973
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: xlsx
Source: https://github.com/danielbere1973/promoar/tree/main/.agents/skills/xlsx
Command: npx skills add https://github.com/danielbere1973/promoar --skill xlsx-danielbere1973

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, and inconsistent formatting. This Skill provides a complete workflow for creating, editing, and analyzing .xlsx, .xlsm, .csv, and .tsv files while guaranteeing zero formula errors and professional financial-model formatting standards. ## Core Features & Use Cases - Formula-first spreadsheet generation: Builds Excel files with live formulas (SUM, growth rates, ratios) instead of hardcoded Python-calculated values, keeping workbooks dynamic and updateable. - Automated recalculation and error detection: The scripts/recalc.py tool uses LibreOffice to recalculate all formulas and reports #REF!, #DIV/0!, #VALUE!, and other errors with exact cell locations. - Financial modeling conventions: Enforces industry-standard color coding (blue inputs, black formulas, green cross-sheet links), number formatting, and assumption documentation for professional models. - Use Case: A user asks to build a revenue projection model from raw sales data. The Skill creates the workbook with openpyxl, writes formulas referencing assumption cells, applies currency and percentage formats, then runs recalc.py to verify zero errors before delivery. ## Quick Start Use the xlsx skill to create a financial model spreadsheet from my sales data with formulas for totals and growth rates, 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 write formula strings like '=SUM(B2:B9)' directly into cells, then save the workbook. Formulas are stored but not evaluated, so run a recalculation step with LibreOffice to compute values before delivery.

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 workbooks while preserving structure.

Why do openpyxl formulas show no calculated values?▼

openpyxl stores formulas as strings without evaluating them, so cells appear empty when read with data_only=True. Recalculate the file with LibreOffice using the recalc.py script to compute and cache all formula values.

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

Run the recalc.py script on the file; it returns JSON listing each error type with exact cell locations like Sheet1!B5. Fix invalid references or add denominator checks, then recalculate again until the status is success.

Can I edit an existing xlsx template without losing formatting?▼

Yes, load the file with openpyxl's load_workbook to preserve existing formulas and styles, then modify only the needed cells. Avoid saving with data_only=True, which permanently replaces formulas with static values.