| A | B | C | D | E | F | G | H | I | J | K | L | M | N | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | Product | Status | Qty | Shipped Widgets | ||||||||||
| 2 | Widget | Shipped | 5 | 3 | ||||||||||
| 3 | Gadget | Pending | 12 | |||||||||||
| 4 | Widget | Pending | 8 | |||||||||||
| 5 | Widget | Shipped | 20 | |||||||||||
| 6 | Gadget | Shipped | 15 | |||||||||||
| 7 | Widget | Shipped | 9 | |||||||||||
| 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 E2.
- gives 2
A third pair narrows it further: shipped Widget orders of 9 or more.
- gives 4
The same range can be tested twice: quantities between 5 and 12.
- gives 6
For one thing or another, add two COUNTIFS.
Common mistakes
- Ranges of different lengths give a #VALUE! error.
- Expecting it to do OR. All conditions must be true at once.
- Number tests without quotes. Write ">=9", not >=9.
Practise it
Count orders that meet three conditions →Related functions