For teachers / Answer key

Answer key: Conditional Math

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. COUNTIF (Intermediate, 5 min)

  1. How many support tickets came in by email? In H2, count the Email entries in the channel column B2:B11.

    • H2 =COUNTIF(B2:B11,"Email")

    Shows H2: 3

  2. Customers who wait 30 minutes or more tend to complain. In H3, count the tickets in D2:D11 with a wait of 30 or more.

    • H3 =COUNTIF(D2:D11,">=30")

    Shows H3: 5

  3. Every billing topic starts with "Billing". In H4, count them in C2:C11 with a wildcard: "Billing*" matches Billing followed by anything.

    • H4 =COUNTIF(C2:C11,"Billing*")

    Shows H4: 4

  4. In H5, count the tickets in E2:E11 that are not Closed, whether they are Open or Pending.

    • H5 =COUNTIF(E2:E11,"<>Closed")

    Shows H5: 6

  5. The team's wait limit lives in H8. In H6, count the waits longer than that limit. Join the operator to the cell with &: ">"&H8.

    • H6 =COUNTIF(D2:D11,">"&H8)

    Shows H6: 7

2. SUMIF and AVERAGEIF (Intermediate, 5 min)

  1. Your food truck has had a busy fortnight. In G2, add up the revenue in D2:D11 from days that took more than $1,000. The test and the sum use the same column, so two arguments are enough.

    • G2 =SUMIF(D2:D11,">1000")

    Shows G2: $7,995

  2. Now total the revenue for each location. In G6, test the locations in column B against F6 and add the matching revenue from column D. Lock both ranges with $ so you can copy the formula down to G8.

    • G6:G8 =SUMIF($B$2:$B$11,F6,$D$2:$D$11) then copy it across the range

    Shows G6: $4,542, G7: $3,424, G8: $3,331

  3. Which spot has the best typical day? In H6:H8, use AVERAGEIF to find the average daily revenue at each location. It takes the same three arguments.

    • H6:H8 =AVERAGEIF($B$2:$B$11,F6,$D$2:$D$11) then copy it across the range

    Shows H6: $1,136, H7: $1,141, H8: $1,110

  4. Last one. In G3, find the average number of customers on days with 100 or more customers, using C2:C11 for both the test and the average.

    • G3 =AVERAGEIF(C2:C11,">=100")

    Shows G3: 120.3

3. COUNTIFS, SUMIFS and MAXIFS (Intermediate, 6 min)

  1. How many e-bikes went out at weekends? In H2, count the rows where the bike in column B is E-bike and the day in column C is Weekend.

    • H2 =COUNTIFS(B2:B13,"E-bike",C2:C13,"Weekend")

    Shows H2: 3

  2. In H3, add up the fees in column E for City bikes rented for 3 hours or more.

    • H3 =SUMIFS(E2:E13,B2:B13,"City",D2:D13,">=3")

    Shows H3: $96

  3. What was the longest weekday rental of a Mountain bike? In H4, use MAXIFS to find the most hours in column D.

    • H4 =MAXIFS(D2:D13,B2:B13,"Mountain",C2:C13,"Weekday")

    Shows H4: 6

  4. Now build a reusable finder. In H9, total the fees for the bike type in H7 and the day in H8. Point the criteria at those cells instead of typing the text.

    • H9 =SUMIFS(E2:E13,B2:B13,H7,C2:C13,H8)

    Shows H9: $88

4. SUMPRODUCT (Advanced, 6 min)

  1. A café has placed its weekly order with your bakery. In G2, work out the order value (each unit price times its quantity, all added up) with a single SUMPRODUCT.

    • G2 =SUMPRODUCT(C2:C9,D2:D9)

    Shows G2: $761.20

  2. What does an item sell for on average, once you account for how many of each were ordered? In G3, divide the order value by the total quantity. Then compare it with the simple average in G4.

    • G3 =G2/SUM(D2:D9)

    Shows G3: $2.69

  3. How much of the order is pastry? In G6, multiply a category test by the prices and the quantities: =SUMPRODUCT((B2:B9="Pastry")*C2:C9*D2:D9)

    • G6 =SUMPRODUCT((B2:B9="Pastry")*C2:C9*D2:D9)

    Shows G6: $332.00

  4. Turn it into a category picker. In G9, use the same pattern, but compare the categories with the cell G8 instead of typed text.

    • G9 =SUMPRODUCT((B2:B9=G8)*C2:C9*D2:D9)

    Shows G9: $296.40