Assuming your data is in Cells A1:B9 you can use this formula
=SUMPRODUCT((A1:A9=1)*((B1:B9="a")+(B1:B9="d"))
--
Excelenato
-----------------------------------------------------------------------
Excelenator's Profile:
http://www.excelforum.com/member.php...fo&userid=3676
View this thread:
http://www.excelforum.com/showthread.php?threadid=56834