xlsx

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

Updated Jun 8, 2026
One-click install
npx skills add https://github.com/Avistian/nba --skill xlsx-avistian
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: xlsx
Source: https://github.com/Avistian/nba/tree/main/.cursor/skills/xlsx
Command: npx skills add https://github.com/Avistian/nba --skill xlsx-avistian

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve? Working with spreadsheets programmatically often leads to broken formulas, hardcoded values that can't update, and inconsistent financial formatting. This Skill ensures every Excel file you create or modify uses live formulas, follows industry-standard financial modeling conventions, and ships with zero formula errors. ## Core Features & Use Cases - Spreadsheet Creation & Editing: Build new .xlsx files or modify existing ones with openpyxl while preserving formulas and formatting, or use pandas for data analysis and bulk operations. - Formula Recalculation & Error Detection: Run the included recalc.py script to recalculate all formulas via LibreOffice and get a JSON report of any #REF!, #DIV/0!, #VALUE!, or other errors with exact cell locations. - Financial Modeling Standards: Apply industry color conventions (blue inputs, black formulas, green cross-sheet links), number formatting rules, and documented hardcode sources. - Use Case: Build a revenue projection model where growth rates live in assumption cells, all totals use =SUM() formulas, and the final file is recalculated and verified error-free before delivery. ## 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 formulas as strings, such as sheet['B10'] = '=SUM(B2:B9)', then save the workbook. Always use Excel formulas instead of computing values in Python so the spreadsheet recalculates when source data changes.

How do I recalculate Excel formulas after editing with openpyxl?▼

openpyxl stores formulas as strings without computed values, so run the recalc.py script with your filename to recalculate via LibreOffice. It returns JSON with error counts and cell locations for any #REF!, #DIV/0!, or similar issues.

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, multiple sheets, or edits that preserve an existing workbook's 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. Run recalc.py to get exact error locations, verify references and denominators, fix the formulas, and recalculate again until zero errors remain.

Can openpyxl read calculated formula values from Excel?▼

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