Excel 2003 Count entries by months

S

Steve2788

I have a table of data, one column of which is a date (when the entry was
created).

I want to create a summary table, of how many entries for each calander
month for last few years. This table will then be broken down by other
factors (to be added to the formula).

Simple enough in 2007, but I don't know the formula syntax in 2003.
 
M

Max

Assuming real dates within A2:A100
In say, C2:
=SUMPRODUCT((TEXT(A$2:A$100,"mmm")=TEXT(DATE(2008,ROWS($1:1),1),"mmm"))*(A$2:A$100<>""))
returns the required counts of dates for Jan
Copy C2 down to C13 to return for the rest of the 12 months: Feb, ... Dec
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:21,000 Files:365 Subscribers:65
xdemechanik
 
T

T. Valko

=TEXT(DATE(2008,ROWS($1:1),1),"mmm")

Another way to write that:

=TEXT(ROWS(C$2:C2)*30,"mmm")

Or, assuming the range contains nothing but dates (and possibly empty
cells):

=SUMPRODUCT(--(MONTH(A$2:A$20)=ROWS(C$2:C2)),--(A$2:A$20<>""))

If no empty cells:

=SUMPRODUCT(--(MONTH(A$2:A$20)=ROWS(C$2:C2)))
 

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