Looks like a rounding error, try this in C2
=INT((ROUND($A2-SUMPRODUCT($B2:B2,$B$1:B$1),2))/C$1)
--
daddylonglegs
------------------------------------------------------------------------
daddylonglegs's Profile:
http://www.excelforum.com/member.php...o&userid=30486
View this thread:
http://www.excelforum.com/showthread...hreadid=524609