The request

From Brian Mitchell, Finance Analyst
Your goal
In F2:F13, compute each line's total with a formula: quantity times unit_price, minus the discount. discount_pct holds percentages, so 10 means 10% off.
- Fill
F2:F13with the right valuesnot done yet - With formulas, not typed numbersnot done yet
Your sheet
| A | B | C | D | E | F | G | |
|---|---|---|---|---|---|---|---|
| 1 | order_item_id | product | quantity | unit_price | discount_pct | line_total | |
| 2 | 1 | Bramble Ceramic Floor Lamp | 9 | 31.99 | 0 | ||
| 3 | 2 | Vale Enamel Bowl Set | 3 | 11.99 | 0 | ||
| 4 | 3 | Vale Enamel Bowl Set | 4 | 11.99 | 0 | ||
| 5 | 4 | Chester Brass Wall Mirror | 1 | 149.00 | 0 | ||
| 6 | 5 | Delancey Brass Vase | 2 | 19.99 | 0 | ||
| 7 | 6 | Pine Glass Candle Holder Set | 2 | 25.99 | 0 | ||
| 8 | 7 | Willow Acacia Knife Block | 1 | 53.99 | 0 | ||
| 9 | 8 | Sable Linen Table Lamp | 1 | 92.99 | 10 | ||
| 10 | 9 | Marlow Glass Wall Sconce | 1 | 349.00 | 10 | ||
| 11 | 10 | Sable Linen Table Lamp | 1 | 92.99 | 10 | ||
| 12 | 11 | Birch Brass Floor Mirror | 2 | 20.99 | 10 | ||
| 13 | 12 | Ridge Ceramic Chandelier | 1 | 149.00 | 10 | ||
| 14 | |||||||
| 15 |
Loading the editor…
Reference solution
Mote checks your result
Press Check. Each right cell becomes a firefly in your lantern.
What Brian gets, and why
The lesson
A spreadsheet cell can hold a value you type, like 12 or Lamp, or a formula: an instruction
that starts with = and computes a value from other cells. Formulas are why analysts use
spreadsheets at all. Change a quantity, and every total that depends on it updates by itself.
Cell references
Every cell has an address: its column letter and its row number. In this sheet the first order
line is in row 2, so its quantity sits in C2 and its unit price in D2. A formula that
multiplies them is:
=C2*D2
Type it in F2 and press Enter. The cell shows the result (9 × 31.99 = 287.91), and the formula
bar above the grid still shows =C2*D2. That difference matters: the cell holds the instruction,
not the number. If someone corrects the quantity in C2, F2 changes too.
The arithmetic operators are the ones you know: + add, - subtract, * multiply, / divide,
and ^ for powers.
Percentages and brackets
discount_pct stores a discount as a whole number: 10 means 10% off. To get the price the
customer actually pays, keep the remaining share: 1 - 10/100, which is 0.9. So the full line
total is:
=C2*D2*(1-E2/100)
Excel follows the usual order of operations: brackets first, then ^, then * and /, then +
and -. Without the brackets, =C2*D2*1-E2/100 computes C2*D2*1 first and then subtracts a tiny
0.1, which is almost no discount at all. When a formula mixes + or - with * or /, add
brackets so the intent is visible.
Filling a formula down
You need the same calculation on twelve rows. Writing twelve formulas by hand is slow and error
prone. Instead, write it once in F2, then fill it down:
- select
F2:F13(clickF2, then Shift+clickF13) and press Ctrl+D (Cmd+D on a Mac), or - drag the small square on the corner of
F2down to row 13, or - on a phone, select the cell and tap Fill down.
Excel copies the formula and moves every reference with it: F3 gets =C3*D3*(1-E3/100), F4
gets row 4, and so on. These are relative references, and they are what makes one formula
work for a whole column. Level 3 shows what to do when a reference must not move.
Common mistakes
- Typing the result instead of a formula.
287.91is right today and wrong tomorrow. The checker asks for formulas for exactly this reason. - Forgetting the
=. Without it, Excel stores the textC2*D2and shows it as a label. - Treating the percentage as a fraction.
=C2*D2*(1-E2)subtracts 10, not 10%, and gives a negative total. - Spaces in the wrong place.
= C2 * D2works, but=C 2does not: an address is one word.
Lantern lit!
Practised: formulascell referencesarithmeticoperator precedence
- Solved
- No hints
- First run
