Ghost Sheet

SORT and TAKE: the top five as a list

How do I list the five best-selling products with their units?

This is the task for this topic. It is part of the plan; the level check before it is free.
D2Type a formula for D2, starting with =

Click the sheet or the button: the task opens in your workspace, ready to type

ABCDE
1ProductUnits soldTop productUnits
2Ink ribbon400
3Poly bag255
4Tissue pack315
5Tote box350
6Box 40x30375
7Glue dots150
8Gloves660
9Void fill105
10Box 60x40485
11Corner guard595
12Pallet wrap540
dashed: the answer to reachblack: matchesblue: right after new datared: wrong

Why it works

What it does
SORT puts a range in order by one of its columns; -1 means biggest first. TAKE keeps the first rows of the result. Together they give a live top-five list. Drop Total lines with FILTER first, because a total is always the biggest number on the sheet.
The shape of the formula
=TAKE(SORT(FILTER(range, names<>"Total"), 2, -1), 5)
How to remember it
Sort the whole table, then take the top.
The usual mistake
Sorting an export that ends with a Total line. Total goes straight to the top.

Keep practicing

Updated