Perhaps easier to use
=B1-TODAY()+SUMPRODUCT(--(M1:M10=TODAY()),--(M1:M10<=B1))
--
daddylonglegs
------------------------------------------------------------------------
daddylonglegs's Profile:
http://www.excelforum.com/member.php...o&userid=30486
View this thread:
http://www.excelforum.com/showthread...hreadid=574137