Is it possible to count the number of dates that falls within two dates across rows? All examples are down columns. I thought this would work, but I just get a count of all dates - even dates outside of my date range. My start date is in C1, end date is D1. Document dates are in columns F1 through M1. Thoughts?

=COUNTIFS(F1:M1,">="&C1,F1:M1,"<="&D1)
=SUMPRODUCT((F1:M1>=C1)*(F1:M1<=D1))

Thanks in advance for your help!