#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Count function

Okay, continuing to work this count function problem and have hit a brick
wall with it. What I am trying to do is count the number of occurrences each
month when a new procedure was created. Below I created a quick example.
Column A would have the date, and column B would then have an 'x' in it if a
new procedure was created. Need to create a count calculation to return the
number of new procedures each month. Not sure how to accomplish that.


A B
1/1/09 X
1/5/09
1/10/09 X
2/1/09 X
3/5/09
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default Count function

Hi,

Put this in a cell and drag down 11 rows to get the sum for each month

=SUMPRODUCT((MONTH($A$1:$A$20)=ROW(A1))*($B$1:$B$2 0="x"))

Mike

"John Peterson" wrote:

Okay, continuing to work this count function problem and have hit a brick
wall with it. What I am trying to do is count the number of occurrences each
month when a new procedure was created. Below I created a quick example.
Column A would have the date, and column B would then have an 'x' in it if a
new procedure was created. Need to create a count calculation to return the
number of new procedures each month. Not sure how to accomplish that.


A B
1/1/09 X
1/5/09
1/10/09 X
2/1/09 X
3/5/09

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,814
Default Count function

Try
=SUMPRODUCT(--(MONTH($A$1:$A$5)=1)*($B$1:$B$5="X"))
will give you Jan
=SUMPRODUCT(--(MONTH($A$1:$A$5)=2)*($B$1:$B$5="X"))
will give you Feb

etc

"John Peterson" wrote:

Okay, continuing to work this count function problem and have hit a brick
wall with it. What I am trying to do is count the number of occurrences each
month when a new procedure was created. Below I created a quick example.
Column A would have the date, and column B would then have an 'x' in it if a
new procedure was created. Need to create a count calculation to return the
number of new procedures each month. Not sure how to accomplish that.


A B
1/1/09 X
1/5/09
1/10/09 X
2/1/09 X
3/5/09

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
Another which count function? Johnny1r Excel Worksheet Functions 7 February 24th 08 03:52 AM
COUNT Function Richard New Users to Excel 3 March 12th 07 04:38 PM
Count function L.T. Excel Discussion (Misc queries) 4 January 20th 07 03:40 AM
which count function? y_not Excel Discussion (Misc queries) 0 March 22nd 06 07:35 AM
count function kckar Excel Discussion (Misc queries) 4 February 15th 06 11:28 PM


All times are GMT +1. The time now is 04:11 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"