this formula works fine in my version of excel (98 I believe)
=sumproduct(--(A1:A100="A&E"),--(B1:B100="Admit to Hospital"))
presumably the ranges a1:a100 and b1:b100 are correct?
--
duane
------------------------------------------------------------------------
duane's Profile:
http://www.excelforum.com/member.php...o&userid=11624
View this thread:
http://www.excelforum.com/showthread...hreadid=319070