使用IF函数=IF(A2<0.5,0.5,IF(AND(A2>1, A2<1.5),1.5,IF(A2>20,ROUND(A2,0),A2)))
=if(a1>20,round(a1,),ceiling(a1,0.5))