=IF(J4F4,(J4+K4)-(F4+G4)-14.5,(J4+K4)-(F4+G4))
this should work...
--
vpanang
------------------------------------------------------------------------
vpanang's Profile:
http://www.excelforum.com/member.php...o&userid=33915
View this thread:
http://www.excelforum.com/showthread...hreadid=537021