Try something along the lines of
=sumproduct((a2:a20="A")*(d2:d20=1)*(e2:e20))
changing the A & 1 where appropriate
Regards
Dav
--
Dav
------------------------------------------------------------------------
Dav's Profile:
http://www.excelforum.com/member.php...o&userid=27107
View this thread:
http://www.excelforum.com/showthread...hreadid=570314