Counting dates

  • Thread starter Thread starter Boylie
  • Start date Start date
B

Boylie

I am trying to count the number of dates in a list that are between two other
dates.

I tried this but it just gave zero:
=COUNTIF(C11:C23,AND( ">"& "G11","<"& "H11"))

Any advise?
 
=COUNTIF(C11:C23,">"&G11) - COUNTIF(C11:C23,"<"&H11)

or

SUMPRODUCT(--(C11:C23>G11), --(C11:C23<H11) )

best wishes
 
Hi,

In 2007:

=COUNTIFS(C11:C23, ">"& G11,C11:C23,"<"& H11)

or in all versions another variation of the SUMPRODUCT:

=SUMPRODUCT((C11:C23>G11)*(C11:C23<H11))
 
Back
Top