Try:
=IF(H1=0,0,IF((C1-B1)H1,H1,(B1+H1)-B1))
--
Vito
------------------------------------------------------------------------
Vito's Profile:
http://www.excelforum.com/member.php...o&userid=29182
View this thread:
http://www.excelforum.com/showthread...hreadid=488549