Module 5 · Clean It or It Lies

Ashley’s channel stats look fine. What’s wrong with them?

Lesson 5.1 · Spot the Mess

Ashley

Average views: 100,000,000. Subscribers: 900. Sure.

Ashley downloads her channel stats into a spreadsheet, and it looks fine at a glance.

Ten rows, five columns, numbers where numbers go. Then the average views comes out at a hundred million.

Ashley has 900 subscribers. Something in the table is lying.

The short answer

Seven things in ten rows: a fake zero, a number stored as text, two spellings of one game, a trailing space, a blank, an “N/A” and a billion. The average was built on all of it and looked perfectly confident.

Try it yourself

Hunt through the table and tap every cell that has a problem. There are seven.

0 of 7

#GameViewsLikesLength (min)

What you just did has a name

Dirty data

Data with mistakes, gaps and inconsistencies in it is dirty.

Almost all real data arrives dirty. The dangerous part isn’t the mess. It’s that the math runs anyway and the answer looks fine.

A few more things

The invisible ones hurt most

A trailing space, a comma inside a number, a lowercase letter. You can’t see them, the spreadsheet won’t flag them, and each one quietly splits a group or drops a row from the math.

Zero is not blank

A blank means “we don’t know.” A zero means “we know, and it’s nothing.” Exports love to turn one into the other, and the average changes depending on which you got.

One wild number owns the average

Nine sane rows and one billion. The average is a hundred million. Module 7 is about why the median wouldn’t have flinched.

Go deeper

The longer version, if you want it.

Why “1,500” isn’t a number

Spreadsheets store each cell as a number or as text. A comma, a stray space or a currency symbol can make a cell text, and text sits out of every SUM and AVERAGE without a warning. In most sheets, text hugs the left edge of a cell and numbers hug the right, which is the quickest way to spot the problem by eye.

The fix is a function that strips the junk and converts what’s left: remove the comma, trim the spaces, then convert to a number. Every spreadsheet has some version of TRIM and VALUE for exactly this.

Quick check

Owen adds up the team’s season points from a stat sheet. The total comes out oddly low, and there was no error message. Most likely explanation?

Let’s take it slower

Think of it as a calculator that never says no. Hand it a number typed as text, a blank, a name spelled two ways, and it doesn’t stop to ask. It skips what it can’t read, splits what doesn’t match, and prints a total anyway. Dirty data is any mess like that hiding in the table. The mess itself isn’t the danger. The danger is that you get an answer, it looks like every other answer, and nothing tells you it was built on junk. So the first question about any number is: what was the table like?

More examples

1

The bake sale ledger

Someone logs a few bake sale rows as “$12.50” with the dollar sign typed in. The end-of-day total says $84 while the cash box holds $131. Nobody miscounted the box, the sheet skipped every row with a dollar sign and never mentioned it.

2

The screen time report

Your phone says you averaged 14 hours of screen time a day this week. One day it logged 60 hours because the clock reset overnight. The report looked completely official, and your parents believed it before you did.

Back to the question

So what was wrong with the export?

Show the answer

Seven things in ten rows: a fake zero, a number stored as text, two spellings of one game, a trailing space, a blank, an “N/A” and a billion. The average was built on all of it and looked perfectly confident.

One last question

Which of these would a spreadsheet silently mishandle?

Tap everything that fits, then check.

Talk Card

Talk Card · 5.1

Messy data doesn’t throw an error. It runs the math anyway and hands you a wrong answer that looks right.

Data to AI · pettigrewlab.com/learn

Next lesson