ABCDEFGHIJK
1
Copyright: Cheat Sheets LLC (CheatSheets.blog)
2
3
Avoid COUNTA False Positive with IFERROR
4
COUNTA ( IFERROR ( FILTER ( return_range , criteria_range = criteria ) ) )
5
6
The example at left uses the above formula, which fixes the false positive issue. The example on the right does not fix the issue. And yes, in this simple example you could just use "COUNTIFS". But, believe me, you'll quickly come across more comlpex scenarios, where COUNTA + FILTER is a better solution
7
8
CORRECT OUTPUT
INCORRECT OUTPUT (FALSE POSITIVES!)
9
10
Date Range - On or After2019-08-15Date Range - On or After2019-08-15
11
Date Range - Before2019-10-01Date Range - Before2019-10-01
12
13
ProductCountProductCount
14
duct tape4duct tape4
15
hammer7hammer7
16
handsaw0handsaw1
17
pliers0pliers1
18
sander2sander2
19
screwdriver7screwdriver7
20
wrench14wrench14
21
22