Forum Discussion
How to count checkboxes between two dates
- 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)
Please attach a small sample workbook.
HansVogelaarHere is a sample workbook. I simply want to count the number of TRUE values for a specific date range. For this example, just for August.
- HansVogelaarOct 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)
- MiguelCosta735Oct 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")