Just expand the previous answers
eg if revenue appears in column C
=SUMPRODUCT((A1:A100={"dept a","dept c"})*(B1:B100))
becomes
=SUMPRODUCT((A1:A100={"dept a","dept
c"})*(B1:B100)*(c1:c100="Revenue"))
Regards
Dav
--
Dav
------------------------------------------------------------------------
Dav's Profile:
http://www.excelforum.com/member.php...o&userid=27107
View this thread:
http://www.excelforum.com/showthread...hreadid=564037