xlsx

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

Updated Jan 21, 2026
One-click install
npx skills add https://github.com/usf-cen4020-s26/in_college_program --skill xlsx-usf-cen4020-s26
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: xlsx
Source: https://github.com/usf-cen4020-s26/in_college_program/tree/main/.claude/skills/xlsx
Command: npx skills add https://github.com/usf-cen4020-s26/in_college_program --skill xlsx-usf-cen4020-s26

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires openpyxl.

What problem does it solve? Working with Excel files programmatically often leads to broken formulas, hardcoded values that can't update, and formatting inconsistencies. This Skill provides structured workflows for creating, editing, and analyzing spreadsheets (.xlsx, .xlsm, .csv, .tsv) while preserving formulas and enforcing zero formula errors. ## Core Features & Use Cases - Formula-First Spreadsheet Creation: Build workbooks with openpyxl using live Excel formulas instead of hardcoded Python-calculated values, keeping files dynamic and updateable. - Formula Recalculation & Error Detection: Use the included recalc.py script with LibreOffice to recalculate all formulas and scan every cell for errors like #REF!, #DIV/0!, and #VALUE! with exact locations. - Financial Modeling Standards: Apply industry-standard color coding (blue inputs, black formulas, green cross-sheet links), number formatting, and assumption-cell conventions for professional financial models. - Use Case: Build a revenue projection model where growth rates live in assumption cells, all totals use SUM formulas, and the recalc script verifies zero errors before delivery. ## Quick Start Ask the AI to create an Excel financial model with formulas for revenue projections and then recalculate and verify the file has no 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 write formulas as strings into cells, such as sheet['B10'] = '=SUM(B2:B9)'. Always use Excel formulas instead of calculating 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 editing existing workbooks while preserving their structure.

How do I recalculate Excel formulas after editing with openpyxl?

openpyxl saves formulas as strings without computed values. Run the recalc.py script with LibreOffice to recalculate all formulas and scan every cell for errors like #REF! and #DIV/0!, returning JSON with error locations.

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

#REF! comes 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 exact error locations by sheet and cell.

Does openpyxl preserve formulas when editing existing spreadsheets?

Yes, openpyxl preserves formulas when loading and saving normally. However, loading with data_only=True and then saving permanently replaces formulas with their cached values, so avoid saving in that mode.