# Excel / XLSX

> Create, inspect, and edit Microsoft Excel workbooks and XLSX files with reliable formulas, dates, types, formatting, recalculation, and template preservation.

- Skill: `ruc-nlpir/excel-xlsx` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add ruc-nlpir/excel-xlsx`
- Raw SKILL.md: https://api.skillmd.com/api/skills/ruc-nlpir/excel-xlsx/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Data & Analytics
- Author: ruc-nlpir (https://skillmd.com/u/ruc-nlpir)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/ruc-nlpir/excel-xlsx

---


## When to Use

Use when the main artifact is a Microsoft Excel workbook or spreadsheet file, especially when formulas, dates, formatting, merged cells, workbook structure, or cross-platform behavior matter.

## Core Rules

- Use `pandas` for analysis, reshaping, and CSV-like tasks.
- Use `openpyxl` when formulas, styles, sheets, comments, merged cells, or workbook preservation matter.
- Write formulas into cells instead of hardcoding derived results from Python.
- Keep calculations in Excel when the workbook should stay live.
- Preserve workbook structure before changing content.
- Verify no `#REF!`, `#DIV/0!`, `#VALUE!`, `#NAME?`, or circular-reference fallout remains before delivery.
- Existing templates override generic styling advice.

## Common Traps

- Type inference on read can leave numbers as text or convert IDs into damaged numeric values.
- Excel silently truncates numeric precision past 15 digits.
- Saving the wrong workbook view can replace formulas with cached values.
- Hidden sheets, named ranges, validations, and merged areas often keep business logic that is invisible in a quick skim.

