xlsx

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

Updated Feb 8, 2026
One-click install
npx skills add https://github.com/ramshan00/hackaton --skill xlsx-ramshan00
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: xlsx
Source: https://github.com/ramshan00/hackaton/tree/main/Hackathon2-phase2/.claude/skills/xlsx
Command: npx skills add https://github.com/ramshan00/hackaton --skill xlsx-ramshan00

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 that violates financial modeling conventions. This Skill ensures spreadsheets are built with live Excel formulas, industry-standard color coding, and zero formula errors through automated recalculation and verification. ## Core Features & Use Cases - Formula-Driven Spreadsheet Creation: Build .xlsx files using openpyxl with real Excel formulas (SUM, AVERAGE, growth rates) instead of hardcoded Python-calculated values, keeping models dynamic and updateable. - Financial Modeling Standards: Apply industry color conventions (blue inputs, black formulas, green cross-sheet links, red external links) and number formatting rules (parenthesized negatives, 0.0% percentages, dash zeros). - Automated 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!, returning JSON with exact error locations. - Use Case: Build a three-statement financial model from company 10-K data with documented assumptions, then recalculate and verify zero formula errors before delivery. ## Quick Start Create an Excel financial model from this revenue data with formulas for growth rates and totals, then recalculate it to verify there are 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 formula strings directly into cells, such as sheet['B10'] = '=SUM(B2:B9)'. 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, cell formatting, styles, or edits that preserve an existing workbook's structure.

How do I recalculate Excel formulas after writing with openpyxl?

openpyxl stores formulas as strings without computed values, so run the recalc.py script with LibreOffice: python recalc.py output.xlsx. It recalculates all sheets and returns JSON reporting any formula errors with their cell 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. The recalc.py output lists each error type with locations like Sheet1!B5, so you can fix references and add denominator checks.

Can openpyxl read calculated values from Excel formulas?

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