have a go at using the sumproduct function
=SUMPRODUCT(--(A1:A14<=D2),--(A1:A14=D1),B1:B14)
--
bill k
------------------------------------------------------------------------
bill k's Profile:
http://www.excelforum.com/member.php...nfo&userid=821
View this thread:
http://www.excelforum.com/showthread...hreadid=478902