Try the following formula...
=SUMPRODUCT(--(P5:P86=C88),--(P5:P86<=C89))
Hope this helps!
--
Domenic
------------------------------------------------------------------------
Domenic's Profile:
http://www.excelforum.com/member.php...o&userid=10785
View this thread:
http://www.excelforum.com/showthread...hreadid=274301