Try
=IF(A1<"",MAX(0,12-CEILING(ABS(A1-B1)/2,1)),"")
--
daddylonglegs
------------------------------------------------------------------------
daddylonglegs's Profile:
http://www.excelforum.com/member.php...o&userid=30486
View this thread:
http://www.excelforum.com/showthread...hreadid=524494