xlsx

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

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires openpyxl, pandas.

What problem does it solve? Working with spreadsheets programmatically often leads to broken formulas, hardcoded values, and formatting inconsistencies. This Skill provides a disciplined workflow for creating, editing, and analyzing Excel files (.xlsx, .xlsm, .csv, .tsv) while preserving formulas, enforcing financial modeling conventions, and guaranteeing 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. - Financial Modeling Standards: Apply industry-standard color coding (blue inputs, black formulas, green cross-sheet links), number formats, and assumption-cell conventions. - Automated Recalculation & Error Detection: Use the recalc.py script with LibreOffice to recalculate all formulas and scan every cell for errors like #REF!, #DIV/0!, and #VALUE!. - Use Case: Build a three-statement financial model from raw company data, with assumptions in dedicated cells, proper currency formatting, and a verified error-free recalculated output file. ## Quick Start Create an Excel financial model from my data with formulas for totals and growth rates, 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 write Excel formulas as strings directly into cells, such as sheet['B10'] = '=SUM(B2:B9)'. Avoid calculating values in Python and hardcoding results, so the spreadsheet stays dynamic and recalculates when source data changes.

How do I recalculate Excel formulas after writing with openpyxl?

openpyxl stores formulas as strings without computed values. Run the recalc.py script with LibreOffice installed: python recalc.py output.xlsx. It recalculates all formulas and returns JSON reporting any errors found.

Should I use pandas or openpyxl for Excel files?

Use pandas for data analysis, reading, and basic operations like filtering and statistics. Use openpyxl when you need formulas, cell formatting, colors, or editing existing workbooks while preserving their structure.

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. The recalc.py script scans all cells and returns JSON with error types and exact locations like Sheet1!B5 so you can fix them.

Can I edit an existing Excel template without breaking its formatting?

Yes. Load the file with openpyxl's load_workbook, which preserves existing formulas and formatting. Study the template's conventions first and match its color codes and styles rather than imposing new formatting.