進一法取整函數(shù) excel中有取整進1函數(shù)沒?
excel中有取整進1函數(shù)沒?除了int(x)函數(shù)可以舍入(直接去掉小數(shù)部分)外,其他幾個函數(shù)也有類似的函數(shù):round(x,0)到round;round down(x,0)到round down(相
excel中有取整進1函數(shù)沒?
除了int(x)函數(shù)可以舍入(直接去掉小數(shù)部分)外,其他幾個函數(shù)也有類似的函數(shù):round(x,0)到round;round down(x,0)到round down(相當于int()函數(shù));footr(x)到round down(相當于int()函數(shù));even(x)到round up;ceiling(x,1)到round up。幾個函數(shù)計算結(jié)果的比較:int(3.2)=3int(3.9)=3round(3.2,0)=3round(3.9,0)=4rounddown(3.2,0)=3rounddown(3.9,0)=3foolr(3.2)=3foolr(3.9)=3Even(3.2)=4Even(3.9)=4ceiling(3.1,1)=4ceiling(3.9,1)=4
首先,我沒有從你的問題中找到規(guī)律。
我不知道您是否想要這樣的結(jié)果:
=if(and(E1>=10,E1<=10.49),round(E1,0),if(E1<=10.59,round down(E1,1),round up(E1,0))
在Excel中,round是一個舍入函數(shù),可以設(shè)置為保留幾個小數(shù)位。
舍入:根據(jù)指定的定位號,舍入指定位數(shù)后的小數(shù)點。如果輸入=rounddown(10.59,1),則會顯示數(shù)字10.5。
四舍五入:將小數(shù)點四舍五入到指定的位數(shù)之后。如果輸入=Roundup(10.60,1),數(shù)字11將出現(xiàn)。