// how to
How to Analyze a Spreadsheet with Claude (CSV and Excel)
Attach a CSV or Excel file to the chat (Excel files need code execution and file creation turned on), describe what the columns mean, and ask business questions in plain English: best sellers, trends, unusual numbers. Ask Claude to show how it calculated each figure, and spot-check a few against your own sheet.
The short version
Claude can answer questions about a spreadsheet in plain English. “Which products sold less this quarter than last?” is a perfectly good request. The two things that make answers reliable: explain what the columns mean, and ask it to show how it got each number.
Step by step
- Prepare the file: one header row, one row per record, no merged cells. Remove columns with private data you don’t need.
- Turn on code execution if you’re uploading an Excel file (XLSX); CSV files work directly.
- Attach the file with +.
- Explain the columns: “Amount is in dollars, excluding tax; Region is the store, not the customer’s address.”
- Ask business questions, one or two at a time.
- Ask how it calculated each figure, and check a few against your sheet.
Prompts to copy
A first look:
I've attached our sales for the last 12 months. Columns: date, product, store, quantity, amount (USD, excl. tax).
First, tell me what you see: totals, date range, anything that looks wrong or missing.
Then list the 5 most interesting patterns, with the numbers behind each.
A specific question:
Which 10 products had the biggest drop in sales from Q2 to Q3? Show a table with both quarters,
the change in dollars and percent, and explain how you calculated it.
A chart:
Make a chart of monthly sales by store for the last 12 months, and tell me in two sentences what it shows.
Example
A shop owner uploads a year of sales and asks why September was weak. Claude finds that two best sellers were out of stock for three weeks, visible as zero-sale days. A quick look at the actual rows confirms it: a finding worth acting on, checked in a minute.
Mistakes to avoid
- Messy sheets. Merged cells, totals in the middle and several tables on one sheet confuse any analysis.
- Unexplained columns. “Amount” could include tax or not; say which.
- Not checking. Ask for the calculation and verify a few numbers by hand.
- Uploading private customer details you don’t need for the question.
When not to use it
For tax filings, payroll or financial statements, use Claude to explore and explain, and have the final numbers checked by your accountant.
Related: summarize a PDF with Claude.
Frequently asked questions
Can Claude open Excel files?
Yes. According to Anthropic's Help Center, XLSX uploads need the code execution and file creation setting turned on. CSV files can be uploaded directly.
Should I upload customer data?
Only if you're allowed to, and only the columns you need. Remove names, emails and phone numbers when your question doesn't need them.
Free download
Get the AI Coding Starter Kit
A PDF you can use with any AI coding assistant: a project-rules template, 25 tested prompt patterns, a team adoption checklist and an assistant comparison sheet. The editable Markdown sources are included.
- Works with Copilot, Claude Code, Codex, Cursor and more
- Double opt-in, one-click unsubscribe
- No trackers, never shared