excel-generator

Generate Excel spreadsheets with formulas, charts, pivot summaries, and financial models.

Updated May 17, 2026
One-click install
npx skills add https://github.com/Amna-exe/EventFlow_App --skill excel-generator-amna-exe
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: excel-generator
Source: https://github.com/Amna-exe/EventFlow_App/tree/main/Final-MAD-project-main-4zipzipzipzipzip-1-ite1zipzip/.local/secondary_skills/excel-generator
Command: npx skills add https://github.com/Amna-exe/EventFlow_App --skill excel-generator-amna-exe

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 professional spreadsheets programmatically requires knowing which Python library fits each task, how to write formulas, charts, and formatting correctly, and how to handle large files or financial model structures without errors. ## 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 Summaries & Sensitivity Grids: Build pivot-table-style summaries with pandas or SUMIFS formulas, plus one-way and two-way data table equivalents for sensitivity analysis. - Google Sheets & PDF Export: Generate Google Sheets via gspread, upload .xlsx to Drive, and export to PDF using LibreOffice CLI with print layout settings. - Use Case: Ask for a DCF valuation model for a public company and receive a formatted multi-sheet workbook with assumptions, projections, terminal value, and a WACC sensitivity grid. ## Quick Start Create an Excel financial model for Tesla with a 5-year DCF, formatted assumptions sheet, and a sensitivity table of WACC versus terminal growth.

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 to write new .xlsx files with formulas via write_formula(), or openpyxl by assigning formula strings like "=SUM(A1:A10)" to cells. Python stores formulas as strings; Excel computes the results when the file is opened.

openpyxl vs xlsxwriter: which should I use?

Use xlsxwriter for creating new files, large datasets, and richer formatting since it is faster and write-only. Use openpyxl when you need to read or modify an existing .xlsx file, since xlsxwriter cannot open existing workbooks.

Can Python create native Excel PivotTables?

No, Python libraries cannot create native Excel PivotTables because they require cached data. The equivalent is built using pandas pivot_table with groupby aggregation or SUMIFS-based formula grids that update 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 around 200MB for 1M rows, or openpyxl in write_only mode. For reading, use openpyxl read_only mode and process rows in batches.

Why does my formula cell show the formula text instead of the result?

Python writes formulas as strings and does not evaluate them; Excel computes values on open. When reading with openpyxl, use data_only=True to get the last cached value instead of the formula string.

Can I convert an Excel file to PDF programmatically?

Yes, use the LibreOffice CLI with libreoffice --headless --convert-to pdf for best fidelity. Set print layout options like fitToWidth, repeat rows, and margins in openpyxl or xlsxwriter before conversion for clean output.