将值舍入到最接近的50

时间:2010-10-09 06:00:55

标签: excel rounding

我想将值舍入到最近的50。 对于例如

121 should get rounded to 100
129 should get rounded to 150
178 should get rounded to 200
165 should get rounded to 150

我尝试过以下功能......

=FLOOR(C629,50)
=FLOOR((C629+50),50)
=CEILING(C631,50)

但我仍未按预期得到结果。

2 个答案:

答案 0 :(得分:6)

根据您提供的示例,您似乎希望将每个数字移动到最近的 50的倍数。

此功能应完成此操作:

=ROUND(C629 / 50 , 0) * 50

这适用于129

  1. 129/50 = 2.58
  2. ROUND(2.58,0)= 3
  3. 3 * 50 = 150
  4. 编辑:OP使用内置MROUND的评论是一个更好的主意。

答案 1 :(得分:2)

为清楚起见,最简单的答案是MROUND,例如:

=MROUND(589,50)

此解决方案为submitted in a comment by shantanuo

相关问题