xlsx

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

2|1|Updated Jun 12, 2025
One-click install
npx skills add https://github.com/agent-trust-protocol/atp-core --skill xlsx-agent-trust-protocol
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: xlsx
Source: https://github.com/agent-trust-protocol/atp-core/tree/main/.claude/skills/document-skills/xlsx
Command: npx skills add https://github.com/agent-trust-protocol/atp-core --skill xlsx-agent-trust-protocol

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires openpyxl, pandas.

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 creating, editing, and analyzing Excel files while preserving formulas and enforcing zero-error outputs. ## Core Features & Use Cases - Spreadsheet Creation & Editing: Build new workbooks or modify existing ones with openpyxl while preserving formulas, styles, and template conventions. - Formula Recalculation & Error Detection: Run the recalc.py script with LibreOffice to recalculate all formulas and scan every cell for errors like #REF!, #DIV/0!, and #VALUE!. - Financial Modeling Standards: Apply industry-standard color coding, number formatting, and assumption placement for professional financial models. - Use Case: Build a revenue projection model where growth rates live in assumption cells, all totals use live Excel formulas, and the final file is recalculated and verified to contain zero formula errors before delivery. ## Quick Start Create an Excel financial model with formulas for revenue projections, 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, complex formatting, cell styles, or to modify existing workbooks while preserving 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 from invalid cell references and #DIV/0! from dividing by empty or zero cells. Verify cell references, check denominators before division, and run recalc.py to get a JSON summary of every error location.

Can openpyxl read calculated formula values from Excel?▼

Yes, load the workbook with data_only=True to read cached calculated values. However, never save a workbook opened this way, because doing so permanently replaces all formulas with their static values.