excel函数精确取舍,如小数点后两位数是0到0.25之间接近0取0,如接近0.25取舍为0.25;请高手赐函数.

2025-01-01 03:22:51
推荐回答(1个)
回答1:

=ROUNDDOWN(A1,0)+IF((A1-ROUNDDOWN(A1,0))>=0.875,1,IF((A1-ROUNDDOWN(A1,0))>=0.625,0.75,IF((A1-ROUNDDOWN(A1,0))>=0.375,0.5,IF((A1-ROUNDDOWN(A1,0))>=0.125,0.25,0))))