The MROUND function in Google Sheets is a powerful tool that allows users to round numbers to the nearest specified multiple. This can be particularly useful in various applications such as financial calculations, inventory management, and data analysis, where precise rounding is required to meet specific standards. By leveraging MROUND, users can ensure their data conforms to designated intervals, enhancing accuracy and consistency.
Syntax
MROUND(value, multiple)
- value: The number you wish to round.
- multiple: The number to which you want the value rounded.
Example #1
=MROUND(7, 3)
The function rounds the number 7 to the nearest multiple of 3, resulting in 6.
Example #2
=MROUND(12.5, 5)
This operation rounds the value of 12.5 to the nearest multiple of 5, resulting in 10.
Example #3
=MROUND(-4.2, 2)
Here, -4.2 is rounded to the nearest multiple of 2, yielding -4.
Error handling
- NUM! – Indicates an invalid multiple (e.g., zero). Ensure the multiple is a non-zero number.
- VALUE! – Occurs if the provided arguments are non-numeric. Ensure both ‘value’ and ‘multiple’ are numerical values.