简体   繁体   English

excel公式,将较高的值取整

[英]excel formula to round off value on the higher side

excel formula to round off value on the higher side excel公式,将较高的值取整

=ROUND(A1,0)

isn't working the way I want 没有按照我想要的方式工作

Desired output 所需的输出

38.18 --> 39
26.22 --> 27

You can use the method CEILING 您可以使用CEILING方法

for your query 为您的查询

= CEILING(A1,1)

will roundoff to next nearest number. 将四舍五入到下一个最近的数字。

Ceiling takes arguments (number,significant) 上限带有参数(数字,有效)

another option that does the same thing. 做同样事情的另一个选择。

=ROUNDUP(A1,0)

A1 is the value you want to round 0 is the number of decimals places. A1是要舍入的值0是小数位数。 -1 will roundup to nearest 10, -2 to nearest 100, etc. 1 will roundup to the nearest 0.1, 2 to the nearest 0.01, etc -1将舍入到最接近的10,-2将舍入到最接近的100,以此类推。1将舍入到最接近的0.1,将2舍入到最接近的0.01,等等。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM