Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Excel 2003 Count entries by months

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.


  #2   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Excel 2003 Count entries by months

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
---
"Steve2788" wrote:
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.


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Excel 2003 Count entries by months

=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)))


--
Biff
Microsoft Excel MVP


"Max" wrote in message
...
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
---
"Steve2788" wrote:
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.




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
"COUNTU" function in Excel to count unique entries in a range WayneL Excel Worksheet Functions 20 September 19th 08 03:50 AM
Delete duplicate entries from Excel 2003 ChristyL Excel Worksheet Functions 1 March 20th 08 06:24 AM
Excel 2003: Autofilter with Multiple Entries oceanmist Excel Discussion (Misc queries) 1 July 17th 07 11:28 AM
COUNT MONTHS RR WILL Excel Worksheet Functions 2 October 12th 06 04:28 PM
YTD total (6 months w/o each record having 6 entries) darkwood Excel Discussion (Misc queries) 2 August 7th 06 06:25 PM


All times are GMT +1. The time now is 05:59 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"