....and to answer your first question, you can use the same formula
without a named range, if you wish, by specifying an array of
department names with the formula i.e.
=sumproduct(--isnumber(match(a1:a100,{"dept A","dept B"},0)),b1:b100)
--
daddylonglegs
------------------------------------------------------------------------
daddylonglegs's Profile:
http://www.excelforum.com/member.php...o&userid=30486
View this thread:
http://www.excelforum.com/showthread...hreadid=564037