Excel Analysis Skill
Profile a spreadsheet, clean it safely, and produce a short analysis with reproducible Python instead of asking an AI to guess from a screenshot.
Download this skill
3 files · SKILL.md + ZIP + Python · License CC BY 4.0
SKILL.md
3.4 KBv1.1.0skill mdskill.json
1.5 KBv1.1.0manifestprofile_workbook.py
1.5 KBv1.1.0python Executable
License: CC BY 4.0. Only download and use files you are licensed to use.
This resource includes executable scripts. Review the code before running it, run it in an isolated environment, and never pass secrets you do not intend to share with the script.
Start with the shape of the data
Most spreadsheet analysis fails before any modelling happens. Columns are misnamed, dates are stored as text, totals include hidden rows, and one sheet is a stale copy of another. An AI assistant cannot reliably infer its way past those problems from a screenshot.
This skill uses a local profiling pass to establish facts: sheet names, row counts, column types, missing values and duplicate rows. Only then does it ask the model for an analysis plan.
Compute, then explain
The strongest pattern is to separate calculation from narration. You compute the result in pandas, print the intermediate table, verify it, and then ask the model to explain that verified table. When the model writes the explanation from the table, you can audit both the numbers and the logic.
Ask for code you can run rather than an answer you have to trust. If a step cannot be reproduced, it is not an analysis.
Common failure modes
- Totals that include subtotal rows. Filter or deduplicate before aggregating.
- Averages over different populations. Show the denominator and the date range.
- Time zones and date formats. Normalise dates explicitly, then check a few boundary rows.
- Uploaded files silently truncated. Profile locally and pass only the relevant columns.
A useful output format
A good analysis ends with four things: the question, the method, the verified numbers with denominators, and the limitations. Anything else is decoration. Save the source file, the script and the output together so another person can reproduce the work.
At a glance
- Difficulty
- Intermediate
- Platforms
- ChatGPT, Claude, Gemini, Python
- File format
- SKILL.md + ZIP + Python
- License
- CC BY 4.0
- Version
- 1.1.0
- Last reviewed
- May 17, 2026
- Source
- AI Skills Hub original
- Access
- Free
What it does
Capabilities included in this package.
- Workbook profiling: sheets, dimensions, dtypes and missing values
- A cleaning checklist that preserves an untouched source file
- AI prompts that explain results rather than invent them
- A verification step for totals and outliers
Requirements
Check these before you start.
- Python 3.10+
- pandas and openpyxl installed
- A copy of the workbook you are allowed to analyse
- Basic familiarity with rows, columns and formulas
Installation
Set up the skill in a working folder before you use it on real material.
- 1
Download the skill
Get the SKILL.md and the example profiling script.
- 2
Install dependencies
Use a virtual environment so the versions are reproducible.
python -m venv .venv && source .venv/bin/activate pip install pandas openpyxl - 3
Keep the original untouched
Copy the workbook into a working folder. Every transformation should write to a new file.
How to use it
A reviewed sequence that keeps a person in the loop.
- 1
Profile before interpreting
Run the profiler and read the sheet list, row counts and missing-value report. Many “insights” are actually data quality problems.
- 2
Define the question
Write one sentence such as: “Which customer segments drove the change in monthly recurring revenue between August and September?”
- 3
Compute the answer in code
Ask the assistant for pandas code, run it locally, and inspect the intermediate table. Do not accept a number that has no code path.
- 4
Explain with caveats
Use the second prompt to turn the verified table into a short narrative with assumptions and limitations clearly stated.
Use cases
Tasks this skill is designed for.
- Find why a monthly revenue report does not reconcile
- Profile a messy export before building a dashboard
- Summarise customer churn drivers for a business review
Worked examples
Reconciliation check
Compare the sum of line items with the reported total, then list rows with missing dates or duplicate invoice numbers. The output is a table of exceptions, not a rewritten total.
Churn summary
Group by plan and cancellation reason, calculate counts and rates, and show the denominator. A rate without a denominator is not an analysis.
Security and privacy
Read this before running any downloaded script or sending material to an AI provider.
Treat downloaded code and extracted text as untrusted
Excel files can contain macros, external connections and embedded objects. Open untrusted workbooks in a protected view and never enable macros. This skill reads values only and does not execute workbook code. Keep a read-only copy of source data and log every transformation.
Version history
v1.1.0
Initial reviewed release.
Mar 26, 2026
Frequently asked questions
Related resources
Spotted something out of date? Suggest the fix and an editor will review it.