you could use a sumproduct
=SUMPRODUCT(--(A1:A10="red"),--(B1:B10="blue"))
Mangesh
--
mangesh_yadav
------------------------------------------------------------------------
mangesh_yadav's Profile:
http://www.excelforum.com/member.php...o&userid=10470
View this thread:
http://www.excelforum.com/showthread...hreadid=379268