xlsx

Create and edit .xlsx spreadsheets with preserved formulas and formatting.

1|Updated Aug 3, 2025
One-click install
npx skills add https://github.com/eesha000009-dev/Exam-Prep100 --skill xlsx-eesha000009-dev
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: xlsx
Source: https://github.com/eesha000009-dev/Exam-Prep100/tree/main/skills/xlsx
Command: npx skills add https://github.com/eesha000009-dev/Exam-Prep100 --skill xlsx-eesha000009-dev

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Many workflows require programmatic creation, modification, and analysis of Excel workbooks while preserving formulas, formatting, and ensuring zero formula errors; this Skill provides deterministic, reproducible Excel generation and verification so users can deliver ready-to-use .xlsx files that recalc correctly.

Core Features & Use Cases

  • Programmatic Excel generation using openpyxl for formulas, styles, layout, and charts combined with pandas for data processing and transformation.
  • Preserve and edit templates: modify existing workbooks while keeping original formulas and styling conventions intact.
  • Formula-first models and validation: write formulas into cells (not hardcode computed values) and use the included recalc.py + LibreOffice to recalculate and detect Excel errors.
  • Styling and finance best-practices: enforces Times New Roman, canvas origin at B2, title and header styling rules, number and color conventions useful for financial models and business reports.
  • Use cases: generate financial models and projections, convert CSV/TSV data into formatted reporting workbooks, update client templates while preserving formulas, and create chart-ready spreadsheets with cached calculated values.

Quick Start

Create a workbook that loads input CSV into a 'Data' sheet, writes formulas for totals and growth on a 'Summary' sheet, applies Times New Roman styling and layout rules, saves as report.xlsx, and run recalc.py report.xlsx to validate formulas.

Frequently Asked Questions about xlsx

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

FAQPage Schema
How do I generate Excel workbooks with Python while preserving formulas and formatting?

To generate Excel workbooks with Python while preserving formulas and formatting, use openpyxl for cell styling and formula writing combined with pandas for data processing. This approach ensures formulas remain intact rather than hardcoding computed values.

Can I edit existing Excel templates without breaking formulas?

Yes, you can edit existing Excel templates without breaking formulas. The Skill modifies workbooks while keeping original formulas and styling conventions intact, ensuring template integrity is maintained during updates.

What is the best way to validate Excel formulas and check for errors programmatically?

The best way to validate Excel formulas and check for errors programmatically is using LibreOffice via the included recalc.py script. This recalculates cached values and detects Excel formula errors in the generated files.

Do I need Python and openpyxl to convert CSV files into formatted Excel reports?

Yes, you need Python 3 with openpyxl and pandas to convert CSV files into formatted Excel reports. These libraries handle data transformation and sheet creation, while LibreOffice is required for formula recalculation and validation.

How do I apply professional financial formatting and styling rules to Excel spreadsheets?

To apply professional financial formatting to Excel spreadsheets, the Skill enforces Times New Roman, canvas origin at B2, and specific title, header, number, and color conventions. This ensures workbooks meet finance best-practice standards.

Why do my Excel formulas show errors after programmatic spreadsheet generation?

Excel formulas may show errors after programmatic spreadsheet generation if cached values are not recalculated. Running recalc.py with LibreOffice recalculates formulas and detects errors, ensuring the final file is ready for use.