#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,069
Default Countif(and

I want to count cells in Column C when column A criteria are met and Column B
criteria are met.
ex. Countif(AND(A1:A5,M3,B1:B5,M4,COUNT(C1:C5)
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default Countif(and

=SUMPRODUCT(--(A1:A5=M3),--(B1:B5=M4),--(C1:C5<""))
--
David Biddulph

"John" wrote in message
...
I want to count cells in Column C when column A criteria are met and Column
B
criteria are met.
ex. Countif(AND(A1:A5,M3,B1:B5,M4,COUNT(C1:C5)



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default Countif(and

John,

It's not entirely clear what you mean by 'count' column C, do you mean any
value?
Here's a couple of ideas

Number in A&B anything in C
=SUMPRODUCT((A1:A10=123)*(B1:B10=234)*(C1:C10<"") )

Text in A&B anything in C
=SUMPRODUCT((A1:A10="ABC")*(B1:B10="DEF")*(C1:C10< ""))

Sum column C
=SUMPRODUCT((A1:A10="ABC")*(B1:B10="DEF")*(C1:C10) )
--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.


"John" wrote:

I want to count cells in Column C when column A criteria are met and Column B
criteria are met.
ex. Countif(AND(A1:A5,M3,B1:B5,M4,COUNT(C1:C5)

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
countif JRD Excel Worksheet Functions 5 December 6th 07 12:30 AM
How do I use a countif function according to two other countif fu. Kirsty Excel Worksheet Functions 2 February 20th 06 11:44 AM
edit this =COUNTIF(A1:F16,"*1-2*")+COUNTIF(A1:F16,"*2-1*") sctroy Excel Discussion (Misc queries) 2 September 25th 05 04:13 AM
COUNTIF or not to COUNTIF on a range in another sheet Ellie Excel Worksheet Functions 4 September 15th 05 10:06 PM
COUNTIF in one colum then COUNTIF in another...??? JonnieP Excel Worksheet Functions 3 February 22nd 05 02:55 PM


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