尝试:
=ARRAYFORMULA(QUERY(QUERY(SPLIT(TRANSPOSE(SPLIT(QUERY(TRANSPOSE(QUERY(TRANSPOSE(
IF(B2:F=TRUE, "♠"&A2:A&"♦"&B1:F1, )),,999^99)),,999^99), "♠")), "♦"),
"where Col2 >="&DATEVALUE("2019-11-27")&"
and Col2 <="&DATEVALUE("2019-12-18")),
"select Col1,count(Col1)
group by Col1
label count(Col1)''"))