excel-generator

Generate .xlsx spreadsheets with formulas, formatting, charts, and data validation.

Updated Dec 10, 2025
One-click install
npx skills add https://github.com/KhaledMKhaled/FodaStore --skill excel-generator-khaledmkhaled
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: excel-generator
Source: https://github.com/KhaledMKhaled/FodaStore/tree/main/.local/secondary_skills/excel-generator
Command: npx skills add https://github.com/KhaledMKhaled/FodaStore --skill excel-generator-khaledmkhaled

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It helps you create professional Excel spreadsheets with formulas, formatting, charts, and dropdown validation without manually building everything in the spreadsheet UI.

Core Features & Use Cases

  • Build .xlsx files from scratch using either openpyxl (edit/round-trip, richer workbook operations) or xlsxwriter (fast, write-only creation for large files).
  • Add Excel-ready calculations by writing formula strings so Excel computes results when the file is opened.
  • Enhance usability and presentation with header styling, number formats, conditional formatting, data validation dropdowns, Excel tables, and charts.
  • Use Case: Create a revenue tracker where rows include product/unit/price inputs, revenue is computed with formulas, totals are summed, revenue bars are shown via conditional formatting, and users choose a status from a dropdown.

Quick Start

Ask the excel-generator skill to generate an output.xlsx sales sheet with headers, currency formatting, revenue formulas, a total row, a revenue data bar chart, and a dropdown validation column.

Frequently Asked Questions about excel-generator

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

FAQPage Schema
How do I generate an Excel file with formulas and formatting using Python?

You can generate Excel files with formulas and formatting by writing Python scripts that use openpyxl or xlsxwriter to create structured .xlsx workbooks, apply header styling, and insert formula strings for Excel to evaluate upon opening. This approach automates spreadsheet creation without manual UI interaction.

What is the best way to add data validation dropdowns and charts to an xlsx file?

Adding data validation dropdowns and charts to an xlsx file is best handled by using openpyxl or xlsxwriter to programmatically define validation rules and attach chart objects to your worksheet data. This ensures interactive elements are embedded directly in the generated spreadsheet.

Does openpyxl or xlsxwriter work better for creating large Excel spreadsheets?

xlsxwriter works better for creating large Excel spreadsheets because it is a fast, write-only engine optimized for generating large files from scratch. openpyxl is more suitable when you need to edit existing workbooks or perform round-trip read and write operations.

Can I use pandas to create multi-sheet Excel workbooks with conditional formatting?

Yes, you can use pandas to structure data for multi-sheet Excel workbooks, and then apply conditional formatting and data validation by extending the output with openpyxl. This allows you to combine data manipulation with professional spreadsheet presentation.

How do I write Excel formulas in Python so they calculate when the file opens?

To write Excel formulas in Python, you write formula strings directly into the worksheet cells using openpyxl or xlsxwriter. Excel then evaluates and computes these formula strings automatically when the generated .xlsx file is opened.

Why are my Excel formulas not evaluating when I generate an xlsx file with openpyxl?

Excel formulas might not evaluate if they are not written as proper formula strings recognized by openpyxl or xlsxwriter, or if the workbook is not fully saved as an .xlsx file. Excel requires the file to be opened in a compatible viewer to trigger formula calculation.