Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Pete Petersen
 
Posts: n/a
Default countif number of occurences per month per year.

I am trying to calculate the count of items between months and years.

1/1/04
12/16/04
1/1/05
12/31/04
11/16/02

I need to say the following on another sheet
Month Count
November 02 1
January 04 1
December 04 2
January 05 1

Is there a way to do this? Thank you,PETE
  #2   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

One way, assume the range of dates are in A2:A50, for November 2002 it would be

=SUMPRODUCT(--(YEAR(A2:A50)=2002),--(MONTH(A2:A50)=11))

or preferably

=SUMPRODUCT(--(YEAR(A2:A50)=C1),--(MONTH(A2:A50)=D1))

where you would put 2002 in C1 and 11 in D1, that way you can just change
the year and month in those cells without having to edit the formula itself




Regards,

Peo Sjoblom




"Pete Petersen" wrote:

I am trying to calculate the count of items between months and years.

1/1/04
12/16/04
1/1/05
12/31/04
11/16/02

I need to say the following on another sheet
Month Count
November 02 1
January 04 1
December 04 2
January 05 1

Is there a way to do this? Thank you,PETE

  #3   Report Post  
Pete Petersen
 
Posts: n/a
Default

You rock!....thank you so much for the quick response...you are amazing

"Peo Sjoblom" wrote:

One way, assume the range of dates are in A2:A50, for November 2002 it would be

=SUMPRODUCT(--(YEAR(A2:A50)=2002),--(MONTH(A2:A50)=11))

or preferably

=SUMPRODUCT(--(YEAR(A2:A50)=C1),--(MONTH(A2:A50)=D1))

where you would put 2002 in C1 and 11 in D1, that way you can just change
the year and month in those cells without having to edit the formula itself




Regards,

Peo Sjoblom




"Pete Petersen" wrote:

I am trying to calculate the count of items between months and years.

1/1/04
12/16/04
1/1/05
12/31/04
11/16/02

I need to say the following on another sheet
Month Count
November 02 1
January 04 1
December 04 2
January 05 1

Is there a way to do this? Thank you,PETE

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
How to extract month number from month name PM Excel Discussion (Misc queries) 2 January 19th 05 03:07 PM
How do I convert a serial number to the month, day, and year in E. Judy Excel Discussion (Misc queries) 2 December 15th 04 03:38 PM
calculate month from week number ankman Excel Worksheet Functions 2 November 24th 04 01:27 AM
Convert week number into calendar month? WickyWick Excel Worksheet Functions 2 November 9th 04 09:01 PM
Insert Month and Year in my worksheet Myrna Excel Worksheet Functions 1 November 8th 04 01:29 AM


All times are GMT +1. The time now is 12:02 AM.

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"