slight correction, I was looking at C for a blank and should have been D
try this

=IF(AND(D1="",SUM($C$2:C2)>=250), MOD(SUM($C$2:C2),250)/2,IF(SUM($C$2:C2)>=250, C2/2,""))