countif two corresponding cells meet the criteria

T

T. Valko

Try one of these.

All versions of Excel:

=SUMPRODUCT(--(A1:A10="A"),--(B1:B10="B"))

Excel 2007 only:

=COUNTIFS(A1:A10,"A",B1:B10,"B")
 
C

chris

Sorry .. but what are the two dashes in front of the bracket? I have 2003
version so must use Sumproduct.
 
Top