| A | B | C | D | E | F | G | H | I | J | K | L | M | N | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | Product | Status | Shipped | |||||||||||
| 2 | Widget | Shipped | 3 | |||||||||||
| 3 | Gadget | Pending | ||||||||||||
| 4 | Widget | Pending | ||||||||||||
| 5 | Widget | Shipped | ||||||||||||
| 6 | Gadget | Shipped | ||||||||||||
| 7 | ||||||||||||||
| 8 | ||||||||||||||
| 9 | ||||||||||||||
| 10 | ||||||||||||||
| 11 | ||||||||||||||
| 12 | ||||||||||||||
| 13 | ||||||||||||||
| 14 | ||||||||||||||
| 15 | ||||||||||||||
| 16 | ||||||||||||||
| 17 | ||||||||||||||
| 18 | ||||||||||||||
| 19 | ||||||||||||||
| 20 | ||||||||||||||
| 21 | ||||||||||||||
| 22 | ||||||||||||||
| 23 | ||||||||||||||
| 24 | ||||||||||||||
| 25 | ||||||||||||||
| 26 | ||||||||||||||
| 27 | ||||||||||||||
| 28 | ||||||||||||||
| 29 | ||||||||||||||
| 30 |
More to try
Each of these works on the sheet. Press one to put it in D2.
- gives 3
The same idea on the product column.
- gives 2
The sign <> means 'not equal to': everything that has not shipped.
- gives 3
The condition can be a cell, so the formula follows the data.
Common mistakes
- Needing two conditions. COUNTIF takes one; use COUNTIFS.
- Number tests without quotes. Write ">=10", not >=10.
- Stray spaces. 'Shipped ' with a trailing space does not match 'Shipped'.
Practise it
Count by status →Related functions