Module 4 · Spreadsheet Superpowers

Felix resells sneakers. Which pair made him the most money?

Lesson 4.1 · Tap a Header, Rows Fall in Line

Felix

Same twenty rows. Tap a header. Suddenly they’re in order.

Felix types the notebook into a spreadsheet.

Twenty rows, five columns. It looks exactly like the notebook, just neater.

Then Felix taps the Profit column header, and the rows rearrange themselves.

The short answer

The Jordan 4s in February: bought for $220, sold for $320, a $100 profit. Sorting by profit put them on top. Filtering to Vans shows the other end of the story: three flips, $26 total.

Try it yourself

Tap a column header to sort. Tap a brand chip to filter to just that brand.

Brand:
Month:
Dunk Low pandaNikeSep11016555
Old Skool blackVansSep456015
Air Force 1 whiteNikeSep9012030
Samba OGAdidasOct8514055
990v6 greyNew BalanceOct15017020
Chuck 70 highConverseOct557015
Dunk Low grey fogNikeOct12015030
Gazelle navyAdidasNov8010525
Jordan 1 midNikeNov130125-5
550 white greenNew BalanceNov9513540
Sk8-Hi checkerVansNov5048-2
Samba blackAdidasDec9015565
Dunk Low UNCNikeDec11519075
Chuck Taylor lowConverseDec405212
2002R protection packNew BalanceJan16021050
Campus 00sAdidasJan10013030
Air Max 90NikeJan1051105
Authentic redVansFeb425513
Jordan 4 greyNikeFeb220320100
574 coreNew BalanceFeb708212

Sorting puts rows in order. Filtering hides what you don’t need right now. Neither one changes the data, just what you’re looking at.

What you just did has a name

Sort and filter

Sorting rearranges rows by one column, biggest to smallest or A to Z.

Filtering shows only the rows that match a rule, like brand equals Nike.

Every spreadsheet, database and analytics tool starts here.

A few more things

Sort answers “which one”

Biggest profit, oldest flip, cheapest buy. Any question that starts with “which one” is a sort. The answer is the top row.

Filter answers “what about only”

What about only Nike? Only December? Only flips that lost money? A filter narrows the table to the rows you mean, and everything you do after that applies to just those.

Nothing gets deleted

Filtered rows are hidden, not gone. Sort, and the data is the same data in a different order. It’s a safe way to poke around, which is why analysts do it first.

Go deeper

The longer version, if you want it.

Sorting by two things at once

Real tools let you sort by brand first and profit second, so every Nike flip is together and the Nikes are in profit order within the group. That’s a multi-level sort, and it’s how “best flip per brand” gets answered without a formula.

Filters stack the same way. Brand equals Nike and month equals December and profit greater than 50 is one filter with three rules. Databases call this a WHERE clause.

Quick check

You open your playlist and want to see only songs added this month, from longest to shortest. What did you just describe?

Let’s take it slower

Try it this way: a sort is a shuffle and a filter is a sieve. The shuffle keeps every row and just changes who’s on top. The sieve keeps the order and drops the rows that don’t fit through. You can tell which one you need by the word in your head. “Biggest,” “oldest,” “first” means sort. “Only,” “just,” “except” means filter. Most real questions use both: sieve first, then shuffle what’s left.

More examples

1

The headphone search

Search a store for headphones, tick “wireless,” then pick “price: low to high.” That was a filter and a sort, and the site had thousands of rows a second ago. Nothing got deleted. You just stopped looking at most of it.

2

Missing work in the grade portal

A grade portal lets you show only missing assignments, then sort by due date. That’s the whole trick: filter to the ones that matter, sort so the urgent one is on top. Your teacher does the exact same move from the other side.

Back to the question

So which flip made the most?

Show the answer

The Jordan 4s in February: bought for $220, sold for $320, a $100 profit. Sorting by profit put them on top. Filtering to Vans shows the other end of the story: three flips, $26 total.

One last question

What happens to the rows a filter hides?

Talk Card

Talk Card · 4.1

Sorting puts rows in order and filtering hides the ones you don’t need. Neither changes the data, and both are the first thing anyone does with a table.

Data to AI · pettigrewlab.com/learn

Next lesson