xlsx

Create and edit Excel workbooks with Python while preserving formulas and formatting.

340|18|Updated May 11, 2023
One-click install
npx skills add https://github.com/khaneliman/khanelinix --skill xlsx-khaneliman
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: xlsx
Source: https://github.com/khaneliman/khanelinix/tree/main/modules/common/ai-tools/skills/xlsx
Command: npx skills add https://github.com/khaneliman/khanelinix --skill xlsx-khaneliman

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Excel workbook creation, editing, and analysis with formulas, formatting, and data visualization in a reproducible Python workflow.

Core Features & Use Cases

  • Create new .xlsx workbooks from data with standard formatting and built-in formulas.
  • Edit existing templates while preserving styles, templates, and existing formulas.
  • Analyze data with Python (pandas/openpyxl) and generate ready-to-share results or reports.

Quick Start

Create a new Excel workbook with a sample data table and built-in formulas ready to recalculate.

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 workbook with formulas using Python?

Create an Excel workbook with formulas by using Python to generate data tables with built-in formulas ready for calculation. This approach applies pandas for data handling and openpyxl for standard formatting and styling across multiple sheets.

Can I edit an existing Excel template and preserve its formulas and formatting?

Yes, you can edit existing Excel templates while preserving their original styles, templates, and existing formulas. The workflow modifies template content directly without destroying the pre-configured formatting or calculation logic.

How do I recalculate Excel formulas after modifying a workbook with Python?

Recalculate Excel formulas after modifying a workbook by running the recalc.py tool. This validates and recalculates all formulas within the generated or edited xlsx files to ensure computed values are accurate.

Does openpyxl support building financial models with multiple sheets?

Yes, openpyxl supports building financial models with multiple sheets. It handles formulas and styling across sheets, while pandas manages the underlying data analysis for the financial model or ad-hoc analyses.

What is the best way to automate Excel workbook generation for data analysis?

Automate Excel workbook generation for data analysis by using a reproducible Python workflow. This process combines pandas for data manipulation with openpyxl to apply formatting, insert formulas, and output ready-to-share reports.