Ask Questions of a Spreadsheet With Claude: Three Questions, One Number Checked by Hand
Upload a messy 36-order sales sheet to Claude with analysis on, ask an easy, a medium and a hard question, make it merge 'North / north / N. / Nrth', catch the 77,000 typo, and check one rep's units by hand.
What you will learn
- Turn on Claude's file analysis so answers are calculated, not estimated
- Ask three questions of rising difficulty about a messy sales sheet
- Make Claude merge spelling variants and show which ones it merged
- Catch an outlier and check one number by hand against the sheet
Before you start
- A Claude account with code execution or file analysis turned on
- A spreadsheet or CSV file
You have a spreadsheet and a question. You don't want to build a pivot table, you just want the answer. In this lesson you'll upload a messy sheet to Claude, ask three questions of rising difficulty, and check one number yourself.
Two ideas carry the lesson: answers should be calculated, not estimated, and the checking is still your job.
The sheet: real data is never tidy
The sample is a fictional sales sheet with 36 orders from January to June 2025. Columns: Order Date, Region, Product, Rep, Units, Revenue. It's deliberately messy:
- Regions written several ways: North, north, N., Nrth. Some, like "south ", have a stray space at the end.
- Products too: Widget A, widget a, Widget-A.
- One planted outlier: on 2025-04-16, West, Widget B, rep Tia, 22 units and revenue 77000. At 35 each, 22 units should be 770. It's a typo with two extra zeros.
Open the sheet in Excel or a viewer as well, so you can compare it with what Claude says.
Step 1: turn analysis on
In Claude's settings, turn on the option that lets it run code or analyse files. Menu names change, so look on your own screen. This matters: when Claude runs code on your file, the number comes from the data, not from a pattern in its memory. More on this in Code Execution and File Creation in Claude.
Step 2: question 1 (easy)
How many orders are in this sheet, and what is the total revenue?
What to check: the count should be 36. Then look at the total. With a 77,000 order in a sheet where most orders are a few hundred, the total will look odd. Note that, and keep going.
Step 3: question 2 (medium)
Which region sold the most units? Treat spelling variants of the same region as one region and tell me which variants you merged.
What to check: the list of merged labels. North, north, N. and Nrth should all become one region, and "south " with its trailing space should join South. You asked it to show its working, so read it.
Step 4: question 3 (hard)
Which rep has the highest average revenue per order? Flag anything in the data that looks suspicious.
This is the moment to catch. One wrong order changes the answer: Tia's 77,000 order makes her average look huge. The answer should flag that row. If it doesn't, ask directly:
Is any single order far out of line with the others?
Step 5: check one number by eye
Pick one rep, filter the sheet to their rows, and add up their units yourself. For example, Omar has six orders: 9, 38, 15, 25, 31 and 9 units, which is 127. Ask Claude for Omar's total units and compare. If a number surprises you, open the sheet.
Step 6: break it on purpose
Start a new chat and ask question 2 again without the "merge variants" line. Look at the region totals: they can come back split into separate groups, so "North" and "Nrth" are counted as different regions and the winner can change. Add the merge instruction back and run it again.
The lesson: the cleaning rule is part of the question. Leave it out and you get a precise answer to the wrong question.
Step 7: keep a checklist
Ask Claude to write the three questions and the cleaning rules as a short checklist you can reuse, and save it as a note. Next month's sheet will have the same mess.
Common mistakes
- Analysis turned off. You get an estimate that sounds like a calculation.
- Not saying how to clean the labels. "north" and "Nrth" become two regions.
- Not asking what looks suspicious. The 77,000 typo gets averaged in quietly.
- Checking nothing. One number by hand takes a minute and tells you if the rest is trustworthy.
Recap
| Step | What you do |
|---|---|
| Analysis on | So numbers come from the data |
| Easy question | Count and total; notice if the total looks odd |
| Medium question | Merge spelling variants, and ask which ones were merged |
| Hard question | Ask for anything suspicious; catch the outlier |
| Check by hand | Filter one rep, add their units, compare |
| Keep | Save the questions and cleaning rules as a checklist |
Once your answers are checked, the next step is turning them into a chart and a summary: see Charts, Summaries and Sanity Checks.
StudyEasy AI Community
Learn AI engineering, share what you build, and connect with other learners.
Free resources: lesson files, notebooks and code
Ask questions and join engineering discussions
Meet real people learning and building with AI
Related course on Udemy
Understand AI and Get the Boring Stuff Done
Use Claude, ChatGPT, Gemini and NotebookLM for everyday work, safely.View on Udemy ↗: Understand AI and Get the Boring Stuff Done (paid course, opens in a new tab)Related posts
Claude.ai Interface Tour: Every Control You Need on One Screen
Sign in to claude.ai and learn the one screen you'll use for everything: the chat box, the model selector, the sidebar with chats and Projects, the attach and tools row, the Artifacts panel and Settings.
The AI Fluency Model: Delegation, Description, Discernment and Diligence
Most people pick up AI skills in a random order. The AI Fluency Model builds them in sequence: Delegation (what to hand off), Description (asking well), Discernment (judging the output) and Diligence (using it responsibly).
Working With Claude: Pick the Surface, Match the Model, Keep the Context Clear
Three questions every time you use Claude: where do I use it, which model fits, and how do I keep it sharp? Learn the five surfaces, the four model tiers and the context window, with three habits that keep the board clear.
Claude's Four Entry Points: Choose Chat, Projects, Artifacts or Research Before You Type
Before you type, pick the room: Chat for a quick word, Projects for recurring work with your files, Artifacts for a deliverable you'll edit and keep, Research for a deep, cited dig. A decision guide with links to each deep dive.
