Counting dates

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?
 
B

Bernard Liengme

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

or

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

best wishes
 
S

Shane Devenshire

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))
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top