Xlsx
by Holo00
Comprehensive spreadsheet work including creation, editing, and analysis of Excel files (.xlsx, .xlsm, .csv, .tsv). When Claude needs to work with spreadsheets for data analysis, financial modeling, or any Excel-related tasks.
Skill Details
Repository Files
1 file in this skill directory
name: xlsx description: Comprehensive spreadsheet work including creation, editing, and analysis of Excel files (.xlsx, .xlsm, .csv, .tsv). When Claude needs to work with spreadsheets for data analysis, financial modeling, or any Excel-related tasks.
XLSX Processing
Overview
Work with Excel spreadsheets for creation, editing, data analysis, and financial modeling.
Key Requirements
Zero Formula Errors
All Excel deliverables must have no errors:
#REF!- Invalid reference#DIV/0!- Division by zero#VALUE!- Wrong value type#N/A- Value not available#NAME?- Unrecognized name
Template Preservation
When updating existing files, study and exactly match existing format, style, and conventions.
Financial Model Standards
Color Coding Convention
| Color | Usage |
|---|---|
| Blue text | Hardcoded inputs users will modify |
| Black text | All formulas and calculations |
| Green text | Links from other worksheets |
| Red text | External file links |
| Yellow background | Key assumptions requiring attention |
Number Formatting
- Years as text strings ("2024" not "2,024")
- Currency:
$#,##0with units in headers - Zeros displayed as "-"
- Percentages:
0.0%format - Negative numbers in parentheses, not minus signs
Python Libraries
pandas - Data Analysis
import pandas as pd
# Read Excel
df = pd.read_excel('input.xlsx', sheet_name='Sheet1')
# Process data
df['Total'] = df['Price'] * df['Quantity']
# Write Excel
df.to_excel('output.xlsx', index=False)
openpyxl - Complex Formatting
from openpyxl import Workbook
from openpyxl.styles import Font, PatternFill
wb = Workbook()
ws = wb.active
# Add data with formatting
ws['A1'] = 'Revenue'
ws['A1'].font = Font(bold=True)
# Add formula
ws['B10'] = '=SUM(B1:B9)'
wb.save('output.xlsx')
Tool Selection
| Task | Tool |
|---|---|
| Data analysis | pandas |
| Bulk operations | pandas |
| Simple exports | pandas |
| Complex formatting | openpyxl |
| Formulas | openpyxl |
| Excel-specific features | openpyxl |
Critical Rules
Use Formulas, Not Hardcoded Values
Always employ Excel formulas instead of calculating in Python and embedding results. This maintains spreadsheet dynamism.
# Good - uses formula
ws['C1'] = '=A1+B1'
# Bad - hardcoded result
ws['C1'] = 15 # Don't do this
Documentation Requirements
Hardcoded values require comments citing:
- Source
- Date
- Location
Example: "Source: Company 10-K, FY2024, Page 45"
Common Operations
Reading Multiple Sheets
xlsx = pd.ExcelFile('workbook.xlsx')
for sheet_name in xlsx.sheet_names:
df = pd.read_excel(xlsx, sheet_name=sheet_name)
Conditional Formatting
from openpyxl.formatting.rule import ColorScaleRule
rule = ColorScaleRule(
start_type='min', start_color='FF0000',
end_type='max', end_color='00FF00'
)
ws.conditional_formatting.add('A1:A10', rule)
Pivot Tables with pandas
pivot = df.pivot_table(
values='Sales',
index='Region',
columns='Product',
aggfunc='sum'
)
Related Skills
Xlsx
Comprehensive spreadsheet creation, editing, and analysis with support for formulas, formatting, data analysis, and visualization. When Claude needs to work with spreadsheets (.xlsx, .xlsm, .csv, .tsv, etc) for: (1) Creating new spreadsheets with formulas and formatting, (2) Reading or analyzing data, (3) Modify existing spreadsheets while preserving formulas, (4) Data analysis and visualization in spreadsheets, or (5) Recalculating formulas
Clickhouse Io
ClickHouse database patterns, query optimization, analytics, and data engineering best practices for high-performance analytical workloads.
Clickhouse Io
ClickHouse database patterns, query optimization, analytics, and data engineering best practices for high-performance analytical workloads.
Analyzing Financial Statements
This skill calculates key financial ratios and metrics from financial statement data for investment analysis
Data Storytelling
Transform data into compelling narratives using visualization, context, and persuasive structure. Use when presenting analytics to stakeholders, creating data reports, or building executive presentations.
Kpi Dashboard Design
Design effective KPI dashboards with metrics selection, visualization best practices, and real-time monitoring patterns. Use when building business dashboards, selecting metrics, or designing data visualization layouts.
Dbt Transformation Patterns
Master dbt (data build tool) for analytics engineering with model organization, testing, documentation, and incremental strategies. Use when building data transformations, creating data models, or implementing analytics engineering best practices.
Sql Optimization Patterns
Master SQL query optimization, indexing strategies, and EXPLAIN analysis to dramatically improve database performance and eliminate slow queries. Use when debugging slow queries, designing database schemas, or optimizing application performance.
Anndata
This skill should be used when working with annotated data matrices in Python, particularly for single-cell genomics analysis, managing experimental measurements with metadata, or handling large-scale biological datasets. Use when tasks involve AnnData objects, h5ad files, single-cell RNA-seq data, or integration with scanpy/scverse tools.
Xlsx
Spreadsheet toolkit (.xlsx/.csv). Create/edit with formulas/formatting, analyze data, visualization, recalculate formulas, for spreadsheet processing and analysis.
