View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
John C[_2_] John C[_2_] is offline
external usenet poster
 
Posts: 1,358
Default Count with criteria

A1: 1
A2: I
=SUMPRODUCT(--($B$2:$B$100=A1),--($C$2:C$100=A2))
--
** John C **
Please remember if your question is answered, to mark it answered :). It
helps everyone.


"NM" wrote:

Hi,

I have a column B which can have input as 1, 0,a or sh. Another Column C can
have input as I,D,X,M. I want to count the number of "I"s in column C which
have "1" in column B. In other words if column B has o ans column c has I , I
do not want to count it.

Column B Column C
1 I
0 I
sh D

Thanks for your help.