excel-generator

Generate Excel spreadsheets, Google Sheets, and PDF exports with formulas, charts, and financial models.

Updated Apr 20, 2026
One-click install
npx skills add https://github.com/AmirEmad11/instabot --skill excel-generator-amiremad11
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: excel-generator
Source: https://github.com/AmirEmad11/instabot/tree/main/.local/secondary_skills/excel-generator
Command: npx skills add https://github.com/AmirEmad11/instabot --skill excel-generator-amiremad11

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires openpyxl, xlsxwriter, xlrd, pandas, gspread, google-auth, google-api-python-client, and includes references (resource) components.

What problem does it solve? Building polished spreadsheets programmatically requires knowing which Python library fits each task, how to write formulas, charts, and formatting correctly, and how to handle large files without exhausting memory. This Skill provides tested recipes for creating .xlsx files, Google Sheets, and PDF exports so you avoid common pitfalls like unreadable formulas, broken chart references, and RAM blowups. ## Core Features & Use Cases - Spreadsheet Generation: Create .xlsx files with openpyxl or xlsxwriter including formulas, number formats, conditional formatting, data validation, freeze panes, and charts. - Financial Models: Ready-made recipes for 3-statement models, DCF, LBO, comparable company analysis, and M&A accretion/dilution models with input/output cell conventions. - Pivot-Style Summaries & Sensitivity Grids: Build SUMIFS-based pivot equivalents and one-way or two-way data tables with color-scale formatting. - Google Sheets & PDF Export: Create and format Google Sheets via gspread, upload .xlsx to Drive, and convert spreadsheets to PDF with LibreOffice or print-layout settings. - Use Case: Ask for a DCF valuation model for a public company; the Skill gathers real financials via web search, then produces a formatted multi-sheet workbook with assumptions, projections, and a WACC sensitivity grid. ## Quick Start Create an Excel workbook with a formatted sales table, revenue formulas, a bar chart, and a summary sheet from my data.

Frequently Asked Questions about excel-generator

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 xlsxwriter for new files or openpyxl to edit existing ones, writing formulas as strings like ws.write_formula(0, 3, "=B1*C1"). Python does not evaluate formulas; Excel computes them when the file is opened.

openpyxl vs xlsxwriter: which should I use?

Use xlsxwriter to create new files quickly with rich formatting and low memory usage, since it is write-only. Use openpyxl when you need to read or modify an existing .xlsx file, but expect roughly 50x the file size in RAM.

Can Python create native Excel PivotTables?

No, Python libraries cannot create native PivotTables because they require cached data. Build the equivalent using pandas pivot_table with groupby aggregation, or write SUMIFS formulas that compute dynamically in Excel.

How do I handle Excel files with over 100K rows in Python?

Use xlsxwriter with constant_memory: True for writing, which keeps RAM near 200MB for a million rows. For reading, use openpyxl in read_only mode and process rows in batches, since standard openpyxl can consume around 5GB.

Why does my formula cell show the formula text instead of a value?

openpyxl returns the formula string like =SUM(A1:A10) when reading a cell, not the computed result. Pass data_only=True when loading the workbook to read the last value cached by Excel.

How do I convert an Excel file to PDF programmatically?

Run LibreOffice headless with the command libreoffice --headless --calc --convert-to pdf on the .xlsx file for the best fidelity. Alternatively, set print layout options like fitToWidth and repeat rows in openpyxl or xlsxwriter before exporting from Excel.