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)

  1. 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:D8 A table
  2. 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:D8 A table called Orders
  3. Now add an order. Type straight under the table: SO-5008 in A9, Shelf in B9, 2 in C9 and 129 in D9.

    • A9 SO-5008
    • B9 Shelf
    • C9 2
    • D9 129 · Number format $#,##0
    • A1:D9 A table called Orders

    Shows A9: SO-5008, B9: Shelf, C9: 2, D9: $129

2. Formulas that read a table by name (Intermediate, 7 min)

  1. The orders are already a table called Orders. In E2, work out the first total: type =[@Qty][@[Unit price]] and press Enter. Or type =, click C2, type , click D2.

    • 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

  2. Now total the column from outside the table. In H1, type =SUM(Orders[Total]).

    • H1 =SUM(Orders[Total])

    Shows H1: $2,097

  3. 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

  4. One more: in H3, find the largest order with =MAX(Orders[Total]).

    • H3 =MAX(Orders[Total])

    Shows H3: $534

  5. Now the reward. Add an order under the table: SO-5008 in A9, Chair in B9, 10 in C9 and 89 in D9. Watch E9 and the three summaries.

    • A9 SO-5008
    • B9 Chair
    • C9 10
    • D9 89 · Number format $#,##0
    • E9 =[@Qty]*[@[Unit price]] · Number format $#,##0
    • A1:E9 A table called Orders

    Shows A9: SO-5008, B9: Chair, C9: 10, D9: $89, E9: $890

3. The total row (Beginner, 5 min)

  1. Click a cell of the table, click Table in the toolbar, and tick Total row in the panel.

    • A1:E8 A table called Orders, with its total row on

    Shows E9: $2,097

  2. 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

  3. Now see what SUBTOTAL is for. Open the filter button on the Item heading in B1, untick everything except Chair, and apply.

    • A1:E8 Filter with column B: show Chair