If formulas show errors (#REF!, #DIV/0!), verify cell references
Use data_only=True to read calculated values (but formulas are lost)
For large files, use read_only=True or write_only=True
Notes
Use pandas for data analysis and bulk operations
Use openpyxl for formulas, formatting, and Excel-specific features
Cell indices are 1-based in openpyxl
Recalculate formulas with LibreOffice if needed
Source: anthropics/skills
1---2name: xlsx-toolkit3description: XLSX Toolkit4---5# XLSX Toolkit67Comprehensive spreadsheet creation, editing, and analysis with support for formulas, formatting, data analysis, and visualization.89## Prerequisites1011- Python 3.8+12- Libraries: openpyxl, pandas13- Optional: LibreOffice (for formula recalculation)1415## Instructions16171. **Read and analyze Excel data with pandas**18 ```python19 import pandas as pd20 df = pd.read_excel('file.xlsx')21 all_sheets = pd.read_excel('file.xlsx', sheet_name=None)22 df.describe() # Statistics23 ```24252. **Create new Excel files with openpyxl**26 ```python27 from openpyxl import Workbook28 from openpyxl.styles import Font, PatternFill2930 wb = Workbook()31 sheet = wb.active32 sheet['A1'] = 'Hello'33 sheet['B2'] = '=SUM(A1:A10)' # Use formulas, not hardcoded values34 sheet['A1'].font = Font(bold=True)35 wb.save('output.xlsx')36 ```37383. **Edit existing files preserving formulas**39 ```python40 from openpyxl import load_workbook41 wb = load_workbook('existing.xlsx')42 sheet = wb.active43 sheet['A1'] = 'New Value'44 wb.save('modified.xlsx')45 ```46474. **Always use Excel formulas instead of hardcoding**48 ```python49 # WRONG: sheet['B10'] = total50 # CORRECT:51 sheet['B10'] = '=SUM(B2:B9)'52 sheet['C5'] = '=(C4-C2)/C2'53 sheet['D20'] = '=AVERAGE(D2:D19)'54 ```55565. **Financial model color standards**57 - Blue text: Hardcoded inputs58 - Black text: All formulas59 - Green text: Links from other sheets60 - Yellow background: Key assumptions61626. **Number formatting**63 - Currency: $#,##0 with units in headers64 - Percentages: 0.0% format65 - Negative numbers: Use parentheses (123) not -1236667## Error Handling6869- If formulas show errors (#REF!, #DIV/0!), verify cell references70- Use `data_only=True` to read calculated values (but formulas are lost)71- For large files, use `read_only=True` or `write_only=True`7273## Notes7475- Use pandas for data analysis and bulk operations76- Use openpyxl for formulas, formatting, and Excel-specific features77- Cell indices are 1-based in openpyxl78- Recalculate formulas with LibreOffice if needed7980Source: anthropics/skills
Run npx skillmds@latest add mediar-ai/xlsx-toolkit in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
XLSX Toolkit It is listed under Data & Analytics on SkillMD.
This skill has not completed SkillMD's automated safety review yet. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
mediar-ai (@mediar-ai) published this skill. Their other Agent Skills are listed on their SkillMD profile.