From raw numbers to real answers — summarise, decide, count and look up data using the Top-20 Vehicles 2021 dataset.
Short explanations, then you try every function live on these slides. Keep Excel open and follow along.
Use =, brackets, commas, cell references and ranges without errors.
Find totals, extremes and typical values.
Label and flag records based on conditions.
Count numbers, entries and records that meet a rule.
Pull a matching value from a table automatically.
Read and repair #NAME?, #VALUE!, #N/A and #REF!.
The 20 best-selling vehicle models of 2021, with unit sales for 2021 and 2020.
| Col | Field | Type |
|---|---|---|
| A | Rank (2021) | Number |
| B | Make (brand) | Text |
| C | Model | Text |
| D | Sales 2021 (units) | Number |
| E | Sales 2020 (units) | Number |
Row 1 holds headers, so data sits in rows 2–21. Figures are approximate U.S. unit sales compiled from public industry reports, for teaching use.
Click or hover each part.
Every formula starts with =. Without it, Excel treats what you type as plain text.
| You type | Meaning |
|---|---|
D2 | One cell: column D, row 2 |
D2:D21 | Range — the colon means “to” |
B2:E2 | A row range (one record) |
C2:E6 | A block: 3 columns × 5 rows |
$D$2 | Absolute — stays fixed when copied |
=D2>E2 down one row and Excel changes it to =D3>E3. Add $ to lock a reference: $D$2 never moves.Type a range in the formula bar → the cells light up.
Adds values. Give it a range, single cells, or a mix: =SUM(D2:D21), =SUM(D2,D5,D9).
=SUM(D2:D21)MIN returns the smallest value; MAX returns the largest. The matching cell is highlighted in yellow.
MAX − MINAdds the numbers and divides by how many there are (the mean). Empty and text cells are ignored.
=AVERAGE(D2:D21)=ROUND(AVERAGE(D2:D21),0)=MEDIAN(D2:D21)=D2>E2 asks: “Did this model sell more in 2021 than in 2020?”
Did each model grow or decline in 2021?
"GROWTH". Single quotes 'GROWTH' → Excel rejects the formula. Curly “smart” quotes “GROWTH” (copied from Word/WhatsApp) → #NAME?Which models sold more than 250,000 in both 2021 and 2020?
“Between” is an AND too: =AND(D2>=250000, D2<=400000)
250,000 is read as two arguments: 250 and 000. Try the last button to see.Which models sold more than 250,000 in either 2021 or 2020?
| Test 1 | Test 2 | AND | OR |
|---|---|---|---|
| TRUE | TRUE | TRUE | TRUE |
| TRUE | FALSE | FALSE | TRUE |
| FALSE | TRUE | FALSE | TRUE |
| FALSE | FALSE | FALSE | FALSE |
| Function | Counts | B2:B21 (text) |
|---|---|---|
COUNT | cells with numbers | 0 |
COUNTA | cells that are not empty | 20 |
COUNT(D2:D21) is less than 20, some sales figures were typed as text (e.g. '726004) or are missing.| Criteria | Counts cells that… |
|---|---|
">250000" | are greater than 250,000 |
"Toyota" | equal Toyota (not case-sensitive) |
"T*" | start with T (* = any characters) |
"<>Ford" | are anything except Ford |
=SUMIF(B2:B21,"Toyota",D2:D21)VLOOKUP only searches the left-most column of table_array. To find by model, start the table at column C: C2:E21, not A2:E21.
In C2:E21, column D is 2 and column E is 3. A number larger than the table width gives #REF!.
Omitting it means approximate match, which needs sorted data and can quietly return the wrong row.
Filling down? Use $C$2:$E$21 so the table doesn't slide. F4 toggles the $ signs.
XLOOKUP is the modern successor — it can look left, defaults to exact match, and doesn't need a column number. Master VLOOKUP first; it appears in almost every workplace workbook.Searches the top row of the table, then reads down. Useful when categories run across columns — like this brand summary built with SUMIF in H1:N3.
Misspelt function, or text without quotes.
try: =SUMM(D2:D21)Text must be in double quotes: "GROWTH".
Maths on text — e.g. multiplying a model name.
try: =C2*2Lookup value not found — check spelling and spaces.
try: =VLOOKUP("Civic",…)Column number bigger than the table (C:E has 3).
try: col_index 4Averaging an empty range — nothing to divide by.
try: =AVERAGE(F2:F21)Try anything from today. Tick Fill down to copy your formula from F2 to F21.
=SUM(E2:E21)… no! Try IF + fill down, then count.=(D2-E2)/E2$ locking — read the message.Supported: SUM, MIN, MAX, AVERAGE, MEDIAN, ROUND, ABS, COUNT, COUNTA, COUNTIF, SUMIF, AVERAGEIF, IF, AND, OR, NOT, VLOOKUP, HLOOKUP, and + − * / ^ & operators.
Complete the Chapter 2 Top-20 Vehicles Excel exercise and upload your .xlsx on the course site. You get your score and feedback immediately.
No thousand separators inside formulas · text in "double quotes" · VLOOKUP with FALSE · check every result makes sense.