The book: files and exercises · Lesson 5 of 24

Lesson 5 exercises: your first formula

Five exercises on your first formula: the equal sign, the operators + - * / and cell references, with the grocery store receipt from lesson05.xlsx. Type the formula in the fx bar: the sheet below works it out the way Excel does and tells you right away whether it's right.

Lesson 5. Your first formula: the equal sign, operators and cell references

Use the Exercises sheet in the file lesson05.xlsx: it is the receipt from a trip to the grocery store.

Files: lesson05.xlsx · solutions: lesson05-solutions.xlsx.

In the exercises with a sheet, type the formula in the fx bar and click Check: the sheet works it out the way Excel does, with commas between the arguments (semicolons work too), and also tries it with other data, to see whether it still works when the data changes. In the other exercises, you work in Excel with the lesson's file and type the result here.

At the end of the page you'll find the lesson's Bonus challenge: one more exercise, whose answer isn't in the book. You check it only here.

Exercise 1

In D4, type the formula for the amount of the milk and copy it with the fill handle down to D8. What is the amount for the coffee?
In cell D4 (the check copies the formula down to D8, like the fill handle)
fx
What is the amount for the coffee?
Show the answer

=B4*C4, copied down to D8. Coffee: =B7*C7 = $20.97.

Exercise 2

In D9, work out the total of the receipt with +.
In cell D9
fx
Show the answer

=D4+D5+D6+D7+D8 = $38.69.

Exercise 3

D11 holds the bill you pay with, $50.00. In D12, type the formula for the change.
In cell D12
fx
Show the answer

=D11-D9 = $11.31.

Exercise 4

In D13, type a single formula that works out the total with a 20% discount. Use the reference to D9.
In cell D13
fx
Show the answer

=D9*(1-20%) = $30.95 (=D9*(1-0.2) and =D9*0.8 work too).

Exercise 5

Now change the quantity of milk (B4) from 2 to 3, without touching any formula. What are the new total, the new change and the new total with the discount?
New total
New change
New total with the discount
Show the answer

Total $39.78, change $10.22, total with the discount $31.82: the formulas recalculate by themselves because they use references.

Bonus challenge

The answer isn't in the book: you check it only here.

Estimate sheet: the customer wants to know what the materials alone cost (rows 4 to 7, without the labor), with the 7% sales tax. Work it out with a single formula in a free cell, for example D16. Watch the parentheses: it is easy to apply the tax to just one line.
In cell D16
fx
Show the answer

=(D4+D5+D6+D7)*(1+7%) (or =(D4+D5+D6+D7)*1.07, or =(D4+D5+D6+D7)*(1+C11) with the 7% sales tax in C11, as in the lesson) = $188.04: the materials before tax plus 7%. Without the parentheses, =D4+D5+D6+D7*1.07 gives a different result, because Excel multiplies only D7 by 1.07.