Counting Dates

M

MikeG

I would like to count the numbers of entris in a column that have the same
month and year. Each value has a date defined as mm/dd/yyyy.

Ex. how many entries are there for January 2007?

do I use countif?
 
G

Gaurav

for january =COUNT(IF(MONTH($A$1:$H$1)=1,$A$1:$H$1))

press CTRL+SHIFT+ENTER not only ENTER

For feb change 1 to 2 in the formula and so on...change the range as per
your need.

hope this helps.
 
R

Ron Coderre

Try something like this:

=SUMPRODUCT(--(TEXT(A2:A100,"yyyymm")="200701"))

Is that something you can work with?
--------------------------

Regards,

Ron
Microsoft MVP (Excel)
(XL2003, Win XP)
 

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