Forum Discussion
MiguelCosta735
Sep 30, 2021Copper Contributor
How to count checkboxes between two dates
I want to count the number of checked boxes for an entire column that matches a certain date range. For example, I want to count the number of checked boxes under column "CriteriaA" that happen ...
- Oct 01, 2021
Use
=COUNTIFS(A3:A12,">="&DATE(2021,8,1),A3:A12,"<="&DATE(2021,8,31),B3:B12,TRUE)
or
=SUMPRODUCT((MONTH(A3:A12)=8)*B3:B12)
HansVogelaar
Oct 01, 2021MVP
Use
=COUNTIFS(A3:A12,">="&DATE(2021,8,1),A3:A12,"<="&DATE(2021,8,31),B3:B12,TRUE)
or
=SUMPRODUCT((MONTH(A3:A12)=8)*B3:B12)
MiguelCosta735
Oct 01, 2021Copper Contributor
HansVogelaarAmazing - that worked! One additional question, what if the column contents is YES / NO instead of True or False. Here's my code, however it won't work....shows 0 results.
=COUNTIFS(A3:A12,">="&DATE(2021,8,1),A3:A12,"<="&DATE(2021,8,31),B3:B12,YES)
- HansVogelaarOct 01, 2021MVP
YES is a text string, so you must enclose it in quotes:
=COUNTIFS(A3:A12,">="&DATE(2021,8,1),A3:A12,"<="&DATE(2021,8,31),B3:B12,"YES")