In Google Sheets, I have a column of dates in A and checkboxes in column B (Redeemed).
I want a formula to count, for each unique date, how many times it appears in the column where the following two conditions are also met:
- The date is in the same month as a lookup date in
D2
- The checkbox in the date's row is
TRUE
(ticked)
- The date is in the same month as a lookup date in
I want to use that count to calculate:
- In
E3
, the sum of the count - In
E4
, the number of times the count includes the number2
- In
E5
, the number of times it includes the number3
- In
E6
, the number of times it includes a number>=3
- In
Example Showing Results E3:E6

In the example above,
E4=11
because there are 11 dates in the month of October, 2023 (lookup month) that also have their "Redeemed" checkbox ticked.E5=1
because there is only one date,10/2/2023
, that appears exactly twice, is in the lookup month, and has the "Redeemed" checkbox ticked.E6=1
, only10/5/2023
appears exactly 3 times and meets the other conditionsE7=2
,10/5/2023
and10/10/2023
appear 3 or more times and meet the other conditions.