Try this:

=IF(AND(K2<2,K2>2),0,IF(K2=2,(I2/H2),0))

=IF(AND(K2<2,K2>2),0,IF(K2=2,(AVERAGE(D15,D17)),0))

Hope this helps.

Pete