ReferenceFunctionsMath Functions
MROUND
MROUND: Rounds a number to the nearest multiple.
Summary
Rounds a number to the nearest multiple.
Remarks
- Returns
0whenmultipleis0. - If
numberandmultiplehave different signs, returns#NUM!. - Midpoints are rounded away from zero.
Examples
Round to nearest 5
Grid
| Cell | Value | |
|---|---|---|
| No inputs on Sheet1. | ||
Formula
=
Result
Not evaluated yet.
Expected
15
Round negative value
Grid
| Cell | Value | |
|---|---|---|
| No inputs on Sheet1. | ||
Formula
=
Result
Not evaluated yet.
Expected
-15
Related functions
FAQ
Why does MROUND return #NUM! for mixed signs?
If number and multiple have different signs (excluding zero), MROUND returns #NUM!.
Runtime metadata
Category
Math
Signature
MROUND(arg1: Number, arg2: Number)Arity
min 2, max 2
Arguments
arg1Number · Scalar · coercion NumberLenientText
arg2Number · Scalar · coercion NumberLenientText
Caps
PURE
Source