I've never created a MAX, if indeed that is how it comes about, what cooked up looks like this... =IF(B4>40,"(B4-40)(.5*C4)",0