This is your reference for working with Excel files programmatically, covering both Python libraries (openpyxl for formatting and cell manipulation, pandas for data operations) and JavaScript's xlsx package. You'll reach for this when reading spreadsheets, writing structured data, applying formulas, or converting between Excel and CSV formats. The examples are concise and cover the common patterns you actually need: iterating rows, styling cells, pivoting data, and merging multiple files. It's designed as a quick lookup rather than a tutorial, so you can grab the syntax and get back to work. The pandas examples are especially useful if you're doing any data transformation before writing output.

skills.sh installs
599
GitHub stars
79
last updated
Aug 21, 2026

Install

$ npx -y skills add bobmatnyc/claude-mpm-skills --skill xlsx --agent claude-code

Installs into .claude/skills of the current project.

Files

Excel/XLSX Manipulation

Working with Excel files programmatically.

Python (openpyxl)

Reading Excel

from openpyxl import load_workbook

wb = load_workbook('data.xlsx')
ws = wb.active  # Get active sheet

# Read cell
value = ws['A1'].value

# Iterate rows
for row in ws.iter_rows(min_row=2, values_only=True):
    print(row)

Writing Excel

from openpyxl import Workbook

wb = Workbook()
ws = wb.active
ws.title = "Data"

# Write data
ws['A1'] = 'Name'
ws['B1'] = 'Age'
ws.append(['John', 30])
ws.append(['Jane', 25])

wb.save('output.xlsx')

Formatting

from openpyxl.styles import Font, PatternFill

# Bold header
ws['A1'].font = Font(bold=True)

# Background color
ws['A1'].fill = PatternFill(start_color="FFFF00", fill_type="solid")

# Number format
ws['B2'].number_format = '0.00'  # Two decimals

Formulas

# Add formula
ws['C2'] = '=A2+B2'

# Sum column
ws['D10'] = '=SUM(D2:D9)'

Python (pandas)

Reading Excel

import pandas as pd

# Read sheet
df = pd.read_excel('data.xlsx', sheet_name='Sheet1')

# Read multiple sheets
dfs = pd.read_excel('data.xlsx', sheet_name=None)

Sponsors

Details

Repository
github.com/bobmatnyc/claude-mpm-skills
Category
Office & Documents
First seen
Jun 3, 2026

More from bobmatnyc/claude-mpm-skills

All 158
1onewave-ai avatarpresentation-design-enhanceronewave-ai/claude-skillsTransform text-heavy slides into visual storytelling. Suggest layout improvements, icon usage, and data visualization.596skills.sh installs
2davila7 avatardocxdavila7/claude-code-templatesUse this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files). Triggers include: any mention of 'Word doc', 'word doc524skills.sh installs
3thvroyal avatarkimi-docxthvroyal/kimi-skillsGenerate and edit Word documents (.docx). Supports professional documents including covers, charts, track-changes editing, and more. Suitable for any .docx crea509skills.sh installs
4evoscientist avataracademic-slidesevoscientist/evoskillsUse this skill for creating or refining an academic slide deck and the talk built around it: structuring a conference talk, thesis defense, lab meeting, or pape501skills.sh installs
5jezweb avatargoogle-workspacejezweb/claude-skillsBuild integrations with Google Workspace APIs (Gmail, Calendar, Drive, Sheets, Docs, Chat, Meet, Forms, Tasks, Admin SDK). Covers OAuth 2.0, service accounts, r428skills.sh installs
6leemysw avatarfeishu-docxleemysw/feishu-docxExport, write, and manage Feishu/Lark cloud documents. Supports docx, sheets, bitable, wiki, WeChat article import/export, drive management, and browser-based e411skills.sh installs