excel-spreadsheets

Creates and formats Excel workbooks with live formulas, charts, and pivot tables using openpyxl and LibreOffice.

Updated Mar 28, 2026
One-click install
npx skills add https://github.com/thedutchvisiongroup/agent-skills --skill excel-spreadsheets-thedutchvisiongroup
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: excel-spreadsheets
Source: https://github.com/thedutchvisiongroup/agent-skills/tree/main/skills/excel-spreadsheets
Command: npx skills add https://github.com/thedutchvisiongroup/agent-skills --skill excel-spreadsheets-thedutchvisiongroup

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve? Building professional Excel deliverables programmatically is error-prone: formulas get hardcoded as dead values, formatting is inconsistent, pivot tables are impossible with openpyxl alone, and formula errors like #REF! slip through undetected. This Skill provides a complete workflow for producing polished, recalculated .xlsx files with zero formula errors. ## Core Features & Use Cases - Live Formula Generation: Writes real Excel formulas (never Python-computed constants) so spreadsheets recalculate when inputs change, with enforced number formatting and layout conventions. - Pivot Tables & Recalculation: Ships scripts that drive LibreOffice headless to create genuine interactive pivot tables and recalculate all formulas while scanning every cell for errors. - Financial Modeling Standards: Reference guides cover industry color coding, number formats, data validation dropdowns, conditional formatting, charts, print setup, and sheet protection. - Use Case: Ask for a quarterly revenue report with a summary dashboard, a sortable data table, a pivot table by region, and YoY growth formulas — the output is a formatted workbook whose totals update automatically when you edit the source data. ## Quick Start Create an Excel workbook named sales-report.xlsx with a summary sheet, a formatted data table, live total formulas, and a pivot table summarizing revenue by region.

Frequently Asked Questions about excel-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 like "=SUM(F2:F19)" directly into cells, then set number_format on each formula cell. Since openpyxl does not evaluate formulas, run a LibreOffice headless recalculation pass afterward to compute and verify results.

How to create a pivot table in Excel with Python?

openpyxl cannot create pivot tables, so use the included pivot_table.py script, which drives LibreOffice's DataPilot engine headless. Pass a JSON config with source sheet, row fields, column fields, and data fields with aggregation functions like SUM or AVERAGE.

Why do my openpyxl formulas show as text or not calculate?

openpyxl stores formulas as strings without evaluating them, so cached values are missing until Excel or LibreOffice opens the file. Run the recalc.py script to recalculate via LibreOffice headless and scan for errors like #REF! or #DIV/0!.

Does openpyxl data_only mode preserve formulas when saving?

No. Opening a workbook with data_only=True replaces formula strings with cached values, and saving destroys the formulas permanently. Use data_only=True only for reading computed results, never for files you intend to save.

When should I not use Excel for data processing?

Avoid Excel for CSV/TSV files needing no formatting, datasets over 100k rows (Excel caps near 1M rows), real-time dashboards better served by BI tools like Metabase or Grafana, and PDF reports requiring a layout engine.