For the first formula use.
=sum(R20:r50) - sumproduct((--(r20:r50<c2),--(r20:r50)) -
sumproduduct((--r20:r50d2),(r20:r50))
For the 2nd and 3rd formulas, substitute c3 and c4 for c2, and d3 and
d4 for d2.
--
rsenn
------------------------------------------------------------------------
rsenn's Profile:
http://www.excelforum.com/member.php...o&userid=29050
View this thread:
http://www.excelforum.com/showthread...hreadid=493231