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.

Lesson9 minLesson 15 of 47 Free

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.

Daily September sales data (CSV)963 rows of sales by day, branch and product, deliberately a little messy like real data.CSV · 963 rows · ~55 KB · free Download

The 4-step flow

  1. Step 1: Profile it first. Ask Claude to describe what’s in the file before it analyzes anything.

    Prompt Try in Claude

    I’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.

  2. Step 2: Give business context. Explain the goal of the analysis and the questions you want answered.

    Prompt Try in Claude

    Context: 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.

  3. Step 3: Ask for a double-check. Make sure the important numbers are right.

    Prompt Try in Claude

    Double-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.

  4. Step 4: Ask for the final output. Charts, a summary or a file.

    Prompt Try in Claude

    Make 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.

ClaudeSeptember data analysis
claude-latihan-penjualan-september.csv
You:

Why did the Depok branch’s revenue drop at the end of September?

Claude: Running data analysis

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 · downloadable
Example with a practice file (illustration). The numbers match the data, so you can compare them with the results Claude gives you.

Data 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.

ProblemCount
Inconsistent branch names (lowercase or a trailing space)5 rows
Blank qty column (even though total is filled in)4 rows
qty mistyped as 9991 row
Duplicate rows (copied twice)3 rows