counting entries between two dates?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi I am tring to count how many entries I have between two dates. I have
been trying to use the countif function and can't get greater or less thans
to work with it.

My dates are in cells c88 (lowest to count) and c89 (highest to count).
The data is in column P

Also, I will need to do the same counting of dates but in two columns
instead after this is figured out.

=COUNTIF(P5:P86,C88) is what I have and of course its not right at all.


TIA

Todd
 
Try the following formula...

=SUMPRODUCT(--(P5:P86>=C88),--(P5:P86<=C89))

Hope this helps
 
Thanks its not quite right. Both formulas are adding all the dates in the
column but not subtracting the dates over the range. It looks right to me
and I have tried typing the dates into the formula but haven't got it yet.
Any ideas?


Todd
 
Hi
what is the formula you have tried?
Both formulas should work
 
Inclusive between count:

=COUNTIF($P$5:$P$86,">="&C88)-COUNTIF($P$5:$P$86,">"&C89)
 
Thanks, Here is the formula I am trying.

=COUNTIF($P$11:$P$40,">="&9/1/4)-COUNTIF($P$11:$P$40,"<"&9/30/4)
 
=COUNTIF($P$11:$P$40,">=9/1/04")-COUNTIF($P$11:$P$40,">9/30/04")
Thanks, Here is the formula I am trying.

=COUNTIF($P$11:$P$40,">="&9/1/4)-COUNTIF($P$11:$P$40,"<"&9/30/4)

[...]
 

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

Back
Top