Try this array formula:
=SUM(IF((E1:E100="discontinue")*(B1:B1000),1))
entered using SHIFT+CTRL+ENTER
HTH
JG
--
pinmaster
------------------------------------------------------------------------
pinmaster's Profile:
http://www.excelforum.com/member.php...fo&userid=6261
View this thread:
http://www.excelforum.com/showthread...hreadid=496219