Countif function

P

Pascale

I am trying to count the number of records between dates. I have trie
=countif(x:x, month(a2)), where x has date formats dd/mm/yyyy. It i
returning 0, and should be returning a value.

Thanks in advanc
 
P

Pascale

the function appears to be counting all empty fields as a january date
How do prevent this from happening
 
D

Domenic

Pascale said:
*the function appears to be counting all empty fields as a januar
date. How do prevent this from happening? *

Add the year as your second criteria...

=SUMPRODUCT(--(MONTH(A2:A100)=6),--(YEAR(A2:A100)=2004))

Hope this helps
 

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