xlsx

Create, edit, and analyze Excel spreadsheets using openpyxl, pandas, and LibreOffice.

3|1|Updated Nov 19, 2025
One-click install
npx skills add https://github.com/lukaskellerstein/claude-my-marketplace --skill xlsx-lukaskellerstein
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: xlsx
Source: https://github.com/lukaskellerstein/claude-my-marketplace/tree/main/plugins/office-plugin/skills/xlsx
Command: npx skills add https://github.com/lukaskellerstein/claude-my-marketplace --skill xlsx-lukaskellerstein

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve? Building or modifying Excel workbooks by hand is slow and error-prone, especially when formulas, formatting, and financial model conventions are involved. This Skill generates and edits .xlsx files programmatically, recalculates formulas via LibreOffice, and validates the output so spreadsheets arrive correct and consistent. ## Core Features & Use Cases - Spreadsheet Generation: Create workbooks from scratch with openpyxl, including formulas, number formats, conditional formatting, charts, and data validation. - Editing & Analysis: Modify existing .xlsx files at the openpyxl or raw XML level, and analyze tabular data with pandas. - Financial Modeling Standards: Apply professional color coding, number formats, and layouts for DCF, LBO, and comparable-company models. - Use Case: Ask for a quarterly revenue model with an Assumptions sheet, cross-sheet formulas, and currency formatting; the Skill generates the workbook, recalculates all formulas with LibreOffice, previews the result, and validates the file schema. ## Quick Start Create an Excel workbook with a formatted sales table, SUM formulas per region, and recalculated values saved as output.xlsx.

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 ws["C5"] = "=SUM(B2:B9)", then save the workbook. openpyxl does not compute values, so recalculate the file with LibreOffice afterward to populate cached results.

How to recalculate Excel formulas after generating with openpyxl?▼

openpyxl writes formula strings but never evaluates them, leaving stale cached values. Run the recalc.py script, which drives LibreOffice headlessly to recalculate all formulas and reports any Excel errors as JSON.

Does openpyxl preserve formulas when editing existing xlsx files?▼

Yes, as long as you load the workbook without data_only=True. Opening with data_only=True and saving permanently replaces every formula with its cached value, so use that flag only for reading computed results.

Why do years like 2024 show as 2,024 in my spreadsheet?▼

Excel applies thousands separators to numeric year values. Set the cell number format to "@" (text) in openpyxl so years display as plain text without grouping separators.

When should I edit xlsx XML directly instead of using openpyxl?▼

Use direct XML editing for features openpyxl does not support, such as custom XML elements, exact template structure preservation, or repairing file corruption. Unpack the xlsx, edit the SpreadsheetML, then repack and validate.