Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default Conditional Countif function?

Hi,

I am trying to devise a formula that looks down a set of data, and look in
columns A and B for Year/Quarter and for each returns a count of whether
colum C is 10.
I can easily get to to count values 10 but not for those that occur in
specific Quarters.

Thanks for any and all help

Data looks as follows:

Yr Q No. of Cases
2008 1 10
2008 1 20
2008 1 30
2008 1 30
2008 1 30
2008 1 10
2008 1 10
2008 2 30
2008 2 30
2008 2 30
2008 2 10
2008 2 10
2008 2 10
2008 2 10
2008 2 10
2008 2 10
2008 3 30
2008 3 30
2008 3 30
2008 3 20
2008 3 20
2008 4 20
2008 4 20
2007 1 10
2007 1 30
2007 1 30
2007 2 30
2007 2 10
2007 2 10
2007 2 10
2007 3 10
2007 4 10
2007 4 10
2007 4 10
2007 4 30
2007 4 30

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default Conditional Countif function?

Hi,

I've assumed that the years and quarters are numbers and not dates

=SUMPRODUCT((A2:A37=2008)*(B2:B37=1)*(C2:C3710))

In practice I'd use cell references for the year and date

=SUMPRODUCT((A2:A37=H1)*(B2:B37=H2)*(C2:C3710))

Mike

"Miketsw" wrote:

Hi,

I am trying to devise a formula that looks down a set of data, and look in
columns A and B for Year/Quarter and for each returns a count of whether
colum C is 10.
I can easily get to to count values 10 but not for those that occur in
specific Quarters.

Thanks for any and all help

Data looks as follows:

Yr Q No. of Cases
2008 1 10
2008 1 20
2008 1 30
2008 1 30
2008 1 30
2008 1 10
2008 1 10
2008 2 30
2008 2 30
2008 2 30
2008 2 10
2008 2 10
2008 2 10
2008 2 10
2008 2 10
2008 2 10
2008 3 30
2008 3 30
2008 3 30
2008 3 20
2008 3 20
2008 4 20
2008 4 20
2007 1 10
2007 1 30
2007 1 30
2007 2 30
2007 2 10
2007 2 10
2007 2 10
2007 3 10
2007 4 10
2007 4 10
2007 4 10
2007 4 30
2007 4 30

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default Conditional Countif function?

That worked wonders - thats saved me a few hours every week

Mike


"Mike H" wrote:

Hi,

I've assumed that the years and quarters are numbers and not dates

=SUMPRODUCT((A2:A37=2008)*(B2:B37=1)*(C2:C3710))

In practice I'd use cell references for the year and date

=SUMPRODUCT((A2:A37=H1)*(B2:B37=H2)*(C2:C3710))

Mike

"Miketsw" wrote:

Hi,

I am trying to devise a formula that looks down a set of data, and look in
columns A and B for Year/Quarter and for each returns a count of whether
colum C is 10.
I can easily get to to count values 10 but not for those that occur in
specific Quarters.

Thanks for any and all help

Data looks as follows:

Yr Q No. of Cases
2008 1 10
2008 1 20
2008 1 30
2008 1 30
2008 1 30
2008 1 10
2008 1 10
2008 2 30
2008 2 30
2008 2 30
2008 2 10
2008 2 10
2008 2 10
2008 2 10
2008 2 10
2008 2 10
2008 3 30
2008 3 30
2008 3 30
2008 3 20
2008 3 20
2008 4 20
2008 4 20
2007 1 10
2007 1 30
2007 1 30
2007 2 30
2007 2 10
2007 2 10
2007 2 10
2007 3 10
2007 4 10
2007 4 10
2007 4 10
2007 4 30
2007 4 30

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default Conditional Countif function?

Glad I could help

"Miketsw" wrote:

That worked wonders - thats saved me a few hours every week

Mike


"Mike H" wrote:

Hi,

I've assumed that the years and quarters are numbers and not dates

=SUMPRODUCT((A2:A37=2008)*(B2:B37=1)*(C2:C3710))

In practice I'd use cell references for the year and date

=SUMPRODUCT((A2:A37=H1)*(B2:B37=H2)*(C2:C3710))

Mike

"Miketsw" wrote:

Hi,

I am trying to devise a formula that looks down a set of data, and look in
columns A and B for Year/Quarter and for each returns a count of whether
colum C is 10.
I can easily get to to count values 10 but not for those that occur in
specific Quarters.

Thanks for any and all help

Data looks as follows:

Yr Q No. of Cases
2008 1 10
2008 1 20
2008 1 30
2008 1 30
2008 1 30
2008 1 10
2008 1 10
2008 2 30
2008 2 30
2008 2 30
2008 2 10
2008 2 10
2008 2 10
2008 2 10
2008 2 10
2008 2 10
2008 3 30
2008 3 30
2008 3 30
2008 3 20
2008 3 20
2008 4 20
2008 4 20
2007 1 10
2007 1 30
2007 1 30
2007 2 30
2007 2 10
2007 2 10
2007 2 10
2007 3 10
2007 4 10
2007 4 10
2007 4 10
2007 4 30
2007 4 30

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
function question (sumif countif conditional) Norbert Excel Worksheet Functions 0 February 25th 08 09:37 PM
Conditional COUNTIF Function Blair Excel Worksheet Functions 3 June 13th 06 05:57 PM
Conditional Countif force530 Excel Worksheet Functions 7 July 1st 05 10:08 PM
Conditional countif force530 Excel Worksheet Functions 6 July 1st 05 06:09 PM
countif conditional Ken Excel Worksheet Functions 1 June 15th 05 06:05 PM


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