Guided project ยท Data

Clean and analyse a messy sales file

Fix the real problems found in business data, analyse it with a pivot table, and let AI help you explain the results.

About 60 minBeginnerNo coding needed
0 of 9 steps done

What you'll build

A clean sales table, a pivot table, a chart and a short summary of what the data says.

What you'll learn

  • Finding duplicates, blanks and inconsistent values
  • Simple data-quality checks
  • Pivot tables and charts
  • Using AI to explain (not invent) results

You'll need

Google Sheets (free) or Excel, and the free sample file below

Create a free account to unlock this project

The step-by-step instructions, copy-ready prompts, progress tracker and portfolio texts are for members. It's free, takes under a minute, and unlocks all guided projects.

Want to try first? These projects are open to everyone: Prompt lab and One idea, five posts.

Before you start

Use any free AI chatbot (ChatGPT, Claude, Gemini or Copilot). Never paste private or confidential information.

Step by step

  1. Open the file

    In Google Sheets: File โ†’ Import โ†’ Upload โ†’ choose messy-sales.csv โ†’ Replace spreadsheet.

    You should see: 42 rows of orders: date, city, product, quantity, price.

  2. Spot the problems

    Read the rows and note issues: the same city written differently (even Bangalore and Bengaluru), extra spaces, blank quantities, a quantity of -3, a suspiciously huge order of 999, and duplicate orders.

    You should see: A list of at least 5 data-quality problems.

  3. Remove duplicates

    Select all data โ†’ Data โ†’ Data cleanup โ†’ Remove duplicates.

    You should see: A message saying a few duplicate rows were removed.

  4. Trim spaces and fix names

    Data โ†’ Data cleanup โ†’ Trim whitespace. Then Edit โ†’ Find and replace to change "delhi", "New Delhi " and "DELHI" to "Delhi" (and similar for other cities).

    You should see: Each city spelled one way only.

  5. Handle blanks and impossible values

    Filter (Data โ†’ Create a filter) to find blank, negative and suspiciously large quantities. Decide: delete the row, or fix it if the correct value is obvious. Note what you did.

    You should see: No blanks or negative numbers left, and a note of your rules.

  6. Add a total column

    In the next empty column, add a header Total and the formula below in row 2, then drag it down.

    Copy this code
    =D2*E2

    You should see: Each row shows quantity ร— price.

  7. Make a pivot table

    Insert โ†’ Pivot table โ†’ New sheet. Rows: City. Values: Total (SUM). Then try Rows: Product.

    You should see: Total sales per city and per product.

  8. Chart it

    Select the pivot table โ†’ Insert โ†’ Chart โ†’ Column chart.

    You should see: A chart showing which city sells the most.

  9. Ask AI to explain, not invent

    Paste the small pivot table (not personal data) into an AI chatbot with this prompt.

    Copy this text
    Here is a pivot table of sales by city. Give me 3 insights and 1 recommendation. Use only these numbers and show the figures you used for each point.
    [paste table]

    You should see: Three insights based only on your numbers. Check each one against the table.

Level up

  • Add a Month column with =TEXT(A2,"mmm") and chart sales over time.
  • Write a data-quality checklist your team could reuse.

Lessons behind this project

Show it off

Finished? Post about it on LinkedIn. Here's a starting point; add a screenshot and your own words.

Copy this post
I cleaned a messy sales file today: duplicates, inconsistent city names, blanks and impossible values, then built a pivot table and chart. Garbage in, garbage out is real! Learned with AI From Zero.
Share on LinkedIn

Add it to your portfolio

Employers love seeing what you've built. Use these ready-made texts, then add your own results and a screenshot.

1. A line for your CV or LinkedIn "Projects" section

Copy for your CV
Clean and analyse a messy sales file: A clean sales table, a pivot table, a chart and a short summary of what the data says. Skills: Finding duplicates, blanks and inconsistent values, Simple data-quality checks, Pivot tables and charts, Using AI to explain (not invent) results. Tools: Google Sheets (free) or Excel, and the free sample file below.

2. A README for GitHub

Create a free GitHub account, make a new repository, add a file called README.md and paste this in along with screenshots of your work.

Copy README.md
# Clean and analyse a messy sales file

Fix the real problems found in business data, analyse it with a pivot table, and let AI help you explain the results.

## What I built
A clean sales table, a pivot table, a chart and a short summary of what the data says.

## What I learned
- Finding duplicates, blanks and inconsistent values
- Simple data-quality checks
- Pivot tables and charts
- Using AI to explain (not invent) results

## Tools
Google Sheets (free) or Excel, and the free sample file below

## How it works
1. Open the file
2. Spot the problems
3. Remove duplicates
4. Trim spaces and fix names
5. Handle blanks and impossible values
6. Add a total column
7. Make a pivot table
8. Chart it
9. Ask AI to explain, not invent

## Results
(Add a screenshot and 2โ€“3 sentences about what you found. Never include API keys or personal data.)

## Next steps
- Add a Month column with =TEXT(A2,"mmm") and chart sales over time.
- Write a data-quality checklist your team could reuse.

---
Built by following the free guided project at https://learnaifromzero.com/projects/clean-sales-data.html