Module 03 · Working with files, images & data
Analyze Excel and CSV data, with charts
Claude runs code behind the scenes to calculate, clean data and make charts. Here is a 4-step flow that gives you results you can trust.
When you upload an Excel or CSV file, Claude doesn’t just "read" it. It writes and runs code in an isolated workspace to calculate exact numbers, then shows you the results, charts or new files. You don’t need to know any coding at all.
The 4-step flow
-
Step 1: Profile it first. Ask Claude to describe what’s in the file before it analyzes anything.
Prompt Try in ClaudeI’ve attached some sales data. Before any analysis, describe what’s in it: the number of rows and columns, what each column means, the period the data covers, and any data quality problems you find (missing values, duplicate rows, inconsistent spelling, odd numbers). The file is in Bahasa Indonesia; reply in English.
-
Step 2: Give business context. Explain the goal of the analysis and the questions you want answered.
Prompt Try in ClaudeContext: this is data from 4 branches of a coffee shop for September. I’m the business owner and I want to know: 1) which branches and products sell best, 2) why the Depok branch went down, 3) the sales pattern by day of the week. First clean up the data problems you found and explain everything you changed.
-
Step 3: Ask for a double-check. Make sure the important numbers are right.
Prompt Try in ClaudeDouble-check the main numbers: total revenue per branch and the overall total. Calculate them a second way to make sure the results match, and tell me if there’s any difference.
-
Step 4: Ask for the final output. Charts, a summary or a file.
Prompt Try in ClaudeMake 2 charts: daily revenue per branch (line) and the 8 best-selling products (bar). Then write 3 key insights and 3 recommended actions, 1 sentence each.
Why did the Depok branch’s revenue drop at the end of September?
The drop starts on 22 September. Before that date, Depok’s daily revenue averaged about Rp3.66 million; from 22 September it fell to about Rp2.13 million a day (down roughly 42%).
The drinks that collapsed are the espresso-based ones (Es Kopi Susu Rimbun, Americano, Cappuccino): their sales fell to less than 20% of normal. On the other hand, Kopi Tubruk more than doubled, and non-coffee drinks stayed fairly stable.
The pattern fits a broken espresso machine: some customers switched to kopi tubruk, but many didn’t buy anything at all.
Chart: Depok daily revenue by categoryPNG image · downloadableData problems planted in the practice file on purpose
This practice file was made a little messy on purpose, like real data from a cash register system. See whether Claude finds all of these problems in step 1.
| Problem | Count |
|---|---|
| Inconsistent branch names (lowercase or a trailing space) | 5 rows |
Blank qty column (even though total is filled in) | 4 rows |
qty mistyped as 999 | 1 row |
| Duplicate rows (copied twice) | 3 rows |