How to count with multiple criteria (COUNTIFS)
✓ Verified in LibreOffice 25.8.7.3Count rows that satisfy several conditions at once — like region = East AND amount over 100.
The formula
| App | Formula | Notes |
|---|---|---|
| Excel | =COUNTIFS(A2:A6,"East",B2:B6,">100") | Add more range/criteria pairs for more conditions. |
| Google Sheets | =COUNTIFS(A2:A6,"East",B2:B6,">100") | Identical. |
| LibreOffice Calc | =COUNTIFS(A2:A6,"East",B2:B6,">100") | Identical. |
How it works
COUNTIFS takes range/criteria pairs and counts rows where every condition holds. Here three rows are "East" but only two of them exceed 100 (150 and 200 — the 80 fails), so the count is 2. All conditions are ANDed; for OR logic, add separate COUNTIFS together or use SUMPRODUCT.
Verified, not just documented
We ran =COUNTIFS(A2:A6,"East",B2:B6,">100") in LibreOffice 25.8.7.3 (headless, with forced recalculation) and it returned 2 — exactly the expected result. Every formula here is confirmed by actually executing it.