Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 6
Default COUNT IF with multiple conditions

Hi,

I need a formula to count the number events that occur BY a certain person
(in column B, with each person numbered from 1-22), IN a certain category (in
column C, with the events coded as A,B,C and D) AND in a certain month (in
column E, date format ??/??/????)

Any ideas?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,420
Default COUNT IF with multiple conditions

=SUMPRODUCT(--(B2:B20=1),--(C2:C20="A"),--(MONTH(E2:E20)=3))

--
__________________________________
HTH

Bob

"Ghalmaraz" wrote in message
...
Hi,

I need a formula to count the number events that occur BY a certain person
(in column B, with each person numbered from 1-22), IN a certain category
(in
column C, with the events coded as A,B,C and D) AND in a certain month (in
column E, date format ??/??/????)

Any ideas?



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 9
Default COUNT IF with multiple conditions

Hi,
Try this (example for Person Nr.1, Category "A" and Month February):
=SUMPRODUCT((B1:B1000=1)*(C1:C1000="A")*(MONAT(E1: E1000)=2))


"Ghalmaraz" wrote:

Hi,

I need a formula to count the number events that occur BY a certain person
(in column B, with each person numbered from 1-22), IN a certain category (in
column C, with the events coded as A,B,C and D) AND in a certain month (in
column E, date format ??/??/????)

Any ideas?

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 6
Default COUNT IF with multiple conditions

Thanks Bob, That worked a treat! Is there any way to adapt it so it also
screens out for year as well as month?

"Bob Phillips" wrote:

=SUMPRODUCT(--(B2:B20=1),--(C2:C20="A"),--(MONTH(E2:E20)=3))

--
__________________________________
HTH

Bob

"Ghalmaraz" wrote in message
...
Hi,

I need a formula to count the number events that occur BY a certain person
(in column B, with each person numbered from 1-22), IN a certain category
(in
column C, with the events coded as A,B,C and D) AND in a certain month (in
column E, date format ??/??/????)

Any ideas?




  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 6
Default COUNT IF with multiple conditions

Not to worry, I figured it out - its ends up like this -

=SUMPRODUCT(--('Access Data'!B2:B4000=1),--('Access
Data'!C2:C4000="A"),--(MONTH('Access Data'!E2:E4000)=1),--(YEAR('Access
Data'!E2:E4000)=1999))

Thanks for your help!
"Ghalmaraz" wrote:

Thanks Bob, That worked a treat! Is there any way to adapt it so it also
screens out for year as well as month?

"Bob Phillips" wrote:

=SUMPRODUCT(--(B2:B20=1),--(C2:C20="A"),--(MONTH(E2:E20)=3))

--
__________________________________
HTH

Bob

"Ghalmaraz" wrote in message
...
Hi,

I need a formula to count the number events that occur BY a certain person
(in column B, with each person numbered from 1-22), IN a certain category
(in
column C, with the events coded as A,B,C and D) AND in a certain month (in
column E, date format ??/??/????)

Any ideas?






  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 9
Default COUNT IF with multiple conditions

Sorry, there was an error in the formula,
Here is one, that also screens out the year:
Example for Person 1, Cat A, Month 2, Year 2009

=SUMPRODUCT((B1:B1000=1)*(C1:C1000="A")*(E1:E1000 =DATE(2009,2,1))*(E1:E1000<=DATE(2009,3,0)))

Rgds. Hansueli


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
COUNT IF Help with multiple conditions potentus Excel Worksheet Functions 4 April 30th 08 05:02 PM
count on multiple conditions Debbie Excel Worksheet Functions 6 September 21st 06 06:34 PM
COUNT using multiple conditions SamGB Excel Discussion (Misc queries) 2 February 9th 06 10:12 PM
Count with multiple conditions Toby0924 Excel Worksheet Functions 3 February 2nd 05 01:35 PM
Count Based upon Multiple Conditions hkslater Excel Worksheet Functions 4 November 19th 04 04:43 AM


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