For teachers / Answer key
Answer key: Tables
For teachers. This page is kept out of search engines and linked only from the teachers page. Students can see the same answers in a lesson with Show answer. Any formula that gives the right values counts.
1. Turn a range into a table (Beginner, 5 min)
Click any cell of the orders, then click Table in the toolbar. The panel suggests the whole block,
A1:D8, with its first row as the headings. Click Create table.A1:D8A table
A new table is called Table1, which says nothing. With a cell of the table selected, type Orders under Name in the Table panel and press Enter.
A1:D8A table called Orders
Now add an order. Type straight under the table:
SO-5008inA9,ShelfinB9,2inC9and129inD9.A9SO-5008B9ShelfC92D9129· Number format $#,##0A1:D9A table called Orders
Shows A9: SO-5008, B9: Shelf, C9: 2, D9: $129
2. Formulas that read a table by name (Intermediate, 7 min)
The orders are already a table called Orders. In
E2, work out the first total: type=[@Qty][@[Unit price]]and press Enter. Or type=, clickC2, type, clickD2.E2:E8=[@Qty]*[@[Unit price]]then copy it across the range
Shows E2: $498, E3: $534, E4: $140, E5: $267, E6: $129, E7: $249, and 1 more
Now total the column from outside the table. In
H1, type=SUM(Orders[Total]).H1=SUM(Orders[Total])
Shows H1: $2,097
Structured references work in every function. In
H2, total the chairs only:=SUMIFS(Orders[Total], Orders[Item], "Chair").H2=SUMIFS(Orders[Total],Orders[Item],"Chair")
Shows H2: $801
One more: in
H3, find the largest order with=MAX(Orders[Total]).H3=MAX(Orders[Total])
Shows H3: $534
Now the reward. Add an order under the table:
SO-5008inA9,ChairinB9,10inC9and89inD9. Watch E9 and the three summaries.A9SO-5008B9ChairC910D989· Number format $#,##0E9=[@Qty]*[@[Unit price]]· Number format $#,##0A1:E9A table called Orders
Shows A9: SO-5008, B9: Chair, C9: 10, D9: $89, E9: $890
3. The total row (Beginner, 5 min)
Click a cell of the table, click Table in the toolbar, and tick Total row in the panel.
A1:E8A table called Orders, with its total row on
Shows E9: $2,097
Every column can have its own total. In the Table panel, under Total row, choose Sum for Qty.
C9=SUBTOTAL(109,[Qty])
Shows C9: 25
Now see what SUBTOTAL is for. Open the filter button on the Item heading in
B1, untick everything except Chair, and apply.A1:E8Filter with column B: show Chair