working-with-spreadsheets

Creates and edits Excel spreadsheets with formulas, formatting, and financial modeling standards.

9|2|Updated Jan 31, 2026
One-click install
npx skills add https://github.com/AbdullahMalik17/Hacathan_5 --skill working-with-spreadsheets-abdullahmalik17
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: working-with-spreadsheets
Source: https://github.com/AbdullahMalik17/Hacathan_5/tree/main/.claude/skills/working-with-spreadsheets
Command: npx skills add https://github.com/AbdullahMalik17/Hacathan_5 --skill working-with-spreadsheets-abdullahmalik17

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve? Building Excel files programmatically often produces broken formulas, hardcoded values, and inconsistent formatting that fails financial modeling standards. This Skill provides the rules and code patterns to generate correct, auditable .xlsx workbooks. ## Core Features & Use Cases - Formula-First Generation: Writes Excel formulas instead of hardcoded Python-calculated values, keeping models auditable and editable. - Financial Color Coding & Number Formats: Applies standard conventions (blue inputs, black formulas, green cross-sheet links) plus currency, percentage, and multiple formats. - Formula Recalculation & Error Checking: Uses LibreOffice-based recalculation to detect #REF!, #DIV/0!, #VALUE!, and #NAME? errors after generation. - Use Case: Build a revenue forecast model where growth rates are blue input cells, projections are black formula cells referencing prior periods, and a verification pass confirms zero formula errors before delivery. ## Quick Start Create an Excel financial model with revenue inputs, formula-driven growth projections, and standard color coding, then recalculate it to verify there are no formula errors.

Frequently Asked Questions about working-with-spreadsheets

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create Excel files with formulas in Python?▼

Use openpyxl to write formula strings directly into cells, such as sheet['B10'] = '=SUM(B2:B9)'. Always write Excel formulas rather than computing values in Python so the workbook stays editable and auditable.

openpyxl vs pandas for Excel files, which should I use?▼

Use pandas for data analysis tasks like reading sheets into DataFrames with pd.read_excel. Use openpyxl when you need formulas, formatting, styles, or editing existing workbooks, since pandas drops formulas and styling on write.

Why does openpyxl not calculate formula values?▼

openpyxl writes formula strings but never evaluates them, so saved files may show stale or missing cached values. Recalculate with LibreOffice via the recalc script, which returns a JSON report of errors and formula counts.

How do I read calculated values from an Excel file with openpyxl?▼

Load the workbook with load_workbook('file.xlsx', data_only=True) to get cached calculated values instead of formula strings. Be aware that saving a workbook loaded this way permanently loses the formulas.

How do I fix #REF! and #DIV/0! errors in generated spreadsheets?▼

#REF! errors come from invalid references after deleted rows or columns, so verify cell mappings. #DIV/0! errors need a guard like =IF(B5=0,0,A5/B5). Run the recalculation script to locate every error by sheet and cell.