Another way:
=SUMPRODUCT(('detail sheet'!$A$1:$A$10=331)*('detail
sheet'!$B$1:$B$10<""))
HTH
Jean-Guy
--
pinmaster
------------------------------------------------------------------------
pinmaster's Profile:
http://www.excelforum.com/member.php...fo&userid=6261
View this thread:
http://www.excelforum.com/showthread...hreadid=512827