Lesson 14. Sorting, filtering and Excel tables
Use the Exercises sheet in lesson14.xlsx: the store's inventory, 12 items.
Files: lesson14.xlsx · solutions: lesson14-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
Show the answer
Click a cell in the list, Insert > Table, OK; type Inventory in the Table Name box; check Total Row and, in the total row cell under Stock, choose Sum: 4,502 units. (Excel puts a sum under Price, the last column, on its own: that is the sum of the prices, a figure that means nothing. Open it and choose None to remove it.)
Exercise 2
Show the answer
Type Value in G3; in G4 =[@Stock]*[@Price]. In the total row, under Value, choose Sum: $4,809.30.
Exercise 3
Show the answer
Top item: 3-ring binder (Equipment section, $344.00); first in the Paper section: Sticky notes ($902.00).
Exercise 4
Show the answer
4 items (No. 2 pencil, Black marker, Yellow highlighter, Blue ballpoint pen); total row Value = $1,466.00. The figure is different because the total row uses SUBTOTAL, which adds only the visible rows, that is, the ones left after the filter.
Bonus challenge
The answer isn't in the book: you check it only here.
Show the answer
Open the arrow of Stock, then Number Filters > Greater Than..., type 400 and click OK. 4 items are left: Blue ballpoint pen, Sticky notes, No. 2 pencil and #10 envelope. The total row of the Value column shows $1,742.00, because it uses SUBTOTAL and adds only the visible rows. When you're done, clear the filter (Data > Sort & Filter > Clear).