=sumproduct(--(a1:a2000=2),--(b1:b2000=5))
Adjust the ranges to match--but you can't use whole columns (except in xl2007).
=sumproduct() likes to work with numbers. The -- stuff changes trues and falses
to 1's and 0's.
Bob Phillips explains =sumproduct() in much more detail here:
http://www.xldynamic.com/source/xld.SUMPRODUCT.html
And J.E. McGimpsey has some notes at:
http://mcgimpsey.com/excel/formulae/doubleneg.html
And if you're using xl2007, you may want to look at =countifs() in excel's help.
> Hi,
>
[quoted text clipped - 9 lines]
>
> zach

Signature
Dave Peterson