You can use SUMPRODUCT()
Try this:
=SUMPRODUCT(--(A1:A7="a"),B1:B7) which gives 44 using your example
--
Cutter
------------------------------------------------------------------------
Cutter's Profile:
http://www.excelforum.com/member.php...fo&userid=9848
View this thread:
http://www.excelforum.com/showthread...hreadid=494109