Countif on multiple dates

G

Guest

I would like to know how I can write a countif to count the number of times
dates are entered into a column and add those dates together. For example I
would like to count the number of times that 12/9/05, 12/10/05, and 12/11/05
appear in a column that shows multiple dates. Thanks for the help.

12/9/05
12/10/05
12/13/05
12/22/05
12/10/05
12/30/05
12/9/05
12/10/05
12/13/05
12/22/05
12/10/05
12/30/05
12/9/05
12/10/05
12/13/05
12/22/05
12/10/05
12/30/05
 
G

Guest

This may work for you:

Assuming your dates are in Cells A1:A20 with the heading "Dates" in A1.

B1: Dates
B2: 12/9/05
B3: 12/10/05
B4: 12/11/05

C1: =DCOUNT(A1:A20,"Date",B1:B4)

Does that help?

***********
Regards,
Ron
 
G

Guest

Perfect solution!!! Is there a formula that will select a range? Say
12/01/05 - 12/06/05?

Thanks
 
R

Roger Govier

Hi Jim

One way
=SUMPRODUCT(--($A$1:$A$100>=DATE(2005,12,9),--($A$1:$A$1000<=DATE(2005,12,11))
If you wanted to make it easy to vary the dates being counted, then put your
earliest date in C1, your latest date in D1 and change formula to


=SUMPRODUCT(--($A$1:$A$100>=C1),--($A$1:$A$1000<=D1)

Change range to suit.

Regards

Roger Govier
 
G

Guest

C1: =DCOUNT(A1:A20,"Date",B1:B4)
Should be....
C1: =DCOUNT(A1:A20,"Dates",B1:B4)

("Date" changed to "Dates")

***********
Regards,
Ron
 

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