Perhaps this
=SUMPRODUCT(--(A2:A7=1),--(B2:B7-C2:C7-D2:D7-E2:E70),B2:B7-C2:C7-D2:D7-E2:E7)
--
daddylonglegs
------------------------------------------------------------------------
daddylonglegs's Profile:
http://www.excelforum.com/member.php...o&userid=30486
View this thread:
http://www.excelforum.com/showthread...hreadid=510283