Returns a number rounded to the nearest specified multiple.
Ta funkcja działa w Arkuszach Google tak samo jak w Excelu — ta sama składnia i argumenty.
MROUND(number, multiple)MROUND rounds a number up or down to the nearest multiple of the provided argument. If the remainder of dividing the number by the multiple is greater than or equal to half the value of the multiple, the function rounds away from zero.
=MROUND(10, 3)Wynik: 9
10 is rounded to the nearest multiple of 3, which is 9.
=MROUND(11, 3)Wynik: 12
11 is rounded to the nearest multiple of 3, which is 12.
MROUND will return a #NUM! error if the number and multiple have different signs.