xlsx

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

Updated Jul 11, 2026
One-click install
npx skills add https://github.com/mukaddam-ali/Anadolu-Kitchen --skill xlsx-mukaddam-ali
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: xlsx
Source: https://github.com/mukaddam-ali/Anadolu-Kitchen/tree/main/skills/document-skills/xlsx
Command: npx skills add https://github.com/mukaddam-ali/Anadolu-Kitchen --skill xlsx-mukaddam-ali

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires openpyxl.

What problem does it solve? Working with spreadsheets programmatically often leads to broken formulas, hardcoded values that cannot update, and formatting that violates financial modeling conventions. This Skill ensures Excel files are built with live formulas, industry-standard color coding, and zero formula errors. ## Core Features & Use Cases - Spreadsheet Creation & Editing: Build new .xlsx files or modify existing ones with openpyxl while preserving formulas and formatting. - Data Analysis: Read and analyze spreadsheet data with pandas, then export results back to Excel. - Formula Recalculation & Validation: Run the recalc.py script with LibreOffice to recalculate all formulas and detect errors like #REF!, #DIV/0!, and #VALUE! with exact cell locations. - Financial Modeling Standards: Apply industry color conventions (blue inputs, black formulas, green cross-sheet links) and number formatting rules automatically. - 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 all calculations, 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, then save the file. Always use Excel formulas rather than computing values in Python 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, multiple sheets, or edits to existing files that must preserve their structure.

How do I recalculate Excel formulas after editing with openpyxl?

openpyxl stores formulas as strings without computed values, so run the recalc.py script with LibreOffice to recalculate all formulas. It returns JSON reporting any errors like #REF! or #DIV/0! with their exact cell locations.

Why does my Excel file show #REF! or #DIV/0! errors?

#REF! occurs when formulas point to invalid cell references, and #DIV/0! happens when dividing by zero or empty cells. Verify cell references, check denominators before division, and run recalc.py to locate every error by sheet and coordinate.

Can openpyxl read calculated formula values from Excel?

Yes, load the workbook with data_only=True to read cached calculated values instead of formula strings. However, never save a file opened this way, because the formulas will be permanently replaced by their values.