xlsx

Create, edit, and recalculate Excel spreadsheets with openpyxl, pandas, and LibreOffice.

Updated Aug 5, 2026
One-click install
npx skills add https://github.com/amirbiron/claude-skills --skill xlsx-amirbiron
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: xlsx
Source: https://github.com/amirbiron/claude-skills/tree/main/skills/xlsx
Command: npx skills add https://github.com/amirbiron/claude-skills --skill xlsx-amirbiron

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve? Spreadsheet tasks often fail silently: formulas written by openpyxl have no cached values, unsupported functions turn into #NAME? errors, and re-saving a workbook can destroy external links. This Skill provides a disciplined workflow for producing spreadsheet files that actually recalculate correctly and follow professional conventions. ## Core Features & Use Cases - Create and edit spreadsheets: Use openpyxl for formulas and formatting, pandas for bulk data in and out, and markitdown for quick sheet previews across .xlsx, .xlsm, .xltx, .csv, and .tsv files. - Mandatory formula recalculation: Run scripts/recalc.py to recalculate every formula via LibreOffice, returning a JSON report of error cells (#VALUE!, #REF!, #NAME?, and more) so no file ships with broken formulas. - Financial modeling conventions: Apply standard color coding (blue inputs, black formulas, green cross-sheet links), number formats, and assumption documentation for professional models. - Use Case: A user asks to build a revenue forecast workbook. The Skill writes SUMIFS and INDEX/MATCH formulas, recalculates the file, fixes any reported errors, and delivers a workbook whose formulas evaluate cleanly. ## Quick Start Use the xlsx skill to create a sales summary spreadsheet from my data with formulas and formatting, then recalculate it to verify there are 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 formulas as strings, such as sheet['B10'] = '=SUM(B2:B9)', rather than hardcoding computed values. After saving, recalculate the file with LibreOffice so formula cells contain cached values that other tools can read.

openpyxl vs pandas for Excel files: which should I use?

Use openpyxl when you need formulas, formatting, or cell-level edits; use pandas read_excel and to_excel for bulk data movement. For a quick look at sheet contents, markitdown renders each sheet without cell coordinates.

Why do openpyxl formulas show None when I read the file back?

openpyxl writes formulas as strings with no cached values, so data_only=True returns None until the file is recalculated. Run a LibreOffice-based recalculation pass to compute and store the values.

Which Excel functions cause #NAME? errors with openpyxl and LibreOffice?

Post-2007 functions like TEXTJOIN, IFS, and MAXIFS need an _xlfn. prefix, while XLOOKUP, XMATCH, SORT, FILTER, UNIQUE, and SEQUENCE cannot be evaluated at all. Prefer Excel-2007-era functions such as SUMIFS, INDEX, MATCH, and IFERROR.

Does openpyxl preserve macros and external workbook links?

Macros in .xlsm files survive only if you pass keep_vba=True to load_workbook. External links lose their cached values on save, so copy those cell values from the original file before recalculating or the links resolve to #NAME?.