Statistical Functions
Intermediate

COUNTIF Function

Counting only the rows that broke a rule.

Task:

You promise delivery within 4 days. Put the number of these six deliveries that took longer than that in B8.

Learning Objectives:

  • Count against a condition with COUNTIF
  • Write a condition as quoted text
  • Get an inclusive boundary right
Hints

Solve without hints for +5 XP

Interactive Spreadsheet

The data in this exercise

This is the grid you start with. Cell references in the task — B6, C2 — point at the row numbers and column letters below.

AB
1DeliveryDays taken
2D-22012
3D-22025
4D-22033
5D-22047
6D-22054
7D-22066
8Missed the 4-day promise
What this exercise teaches (contains the answer)

The boundary is the whole exercise. ">4" counts the 5, 6 and 7-day deliveries; ">=4" would sweep in the one that arrived exactly on the promise and turn a clean record into a breach. Quoting the wrong one of those to a customer is how a report loses its credibility.

Functions used here