HomeGoogle DocsSpreadsheetHow to Use the MROUND Function in Google Sheets

How to Use the MROUND Function in Google Sheets

Published on

Google Sheets MROUND function is a handy math type function similar to ROUND. You can learn here how to use the MROUND function in Google Sheets and its difference with the ROUND function.

The purpose of the MROUND is to round one given number to the nearest integer multiple of another given number.

The former number is called “value” and the latter number is called the “factor” in the function arguments which is as follows.

MROUND Function – Syntax and Arguments

Syntax:

MROUND(value,factor)

Arguments:

In this function, both the arguments (value and factor) are required. If you omit the factor, the formula would return #N/A.

value – The number to round.

factor – The number whose multiples value will be rounded to.

To quickly learn how to use the MROUND function in Google Sheets, I’m bringing your attention to the below examples.

Examples

In the below examples, the formulas round the values in column A (cell range A2:A5) to the nearest integer multiples of the values (factor) in column B (cell range B2:B5).

MROUND examples in Google Doc Sheets

To understand these MROUND() formulas better, see the below explanation related to row # 5 above where the value is 22 (A5) and factor is 8 (B5).

See the multiples of the factor 8 to find the nearest integer multiple.

1 x 8 = 8
2 x 8 = 16
3 x 8 = 24

Here 8, 16, and 24 are the integer multiples of factor 8. In this, the nearest integer multiple of the value 22 (A5) is 24, not 8 or 16.

That’s why the following formula in cell C5 returns 24.

=MROUND(A5,B5)

Hope you could understand it. If you understand this usage, I think there is no point in comparing it with the function ROUND.

Even though, considering the similarity in the function name, I am going to a comparison of Google Sheets MROUND Vs. ROUND.

MROUND Vs. ROUND in Google Sheets

Both the ROUND and MROUND are math functions. The similarity ends there!

The usage of the function ROUND is to round a number to ‘n’ number of decimal places as per standard rules.

See the below two example formulas.

FORMULA # 1

=ROUND(22.1254,2)

Result: 22.13

FORMULA # 2

=ROUND(22.1254,1)

Result: 22.1

As I have already detailed above, the MROUND function is to deal with integer not decimal.

Conclusion

I know you are looking for a practical example of the use of the MROUND function in Google Sheets.

You can use the said function to round time in Google Sheets. I’ve detailed it in another tutorial. Here is the link – ROUND Hours, Minutes, and Seconds Using MROUND in Google Sheets.

That’s all. Enjoy!

Prashanth KV
Prashanth KV
Your Trusted Google Sheets and Excel Guide Prashanth KV brings a wealth of experience in Google Sheets and Excel, cultivated through years of work with multinational corporations in Mumbai and Dubai. As a recognized Google Product Expert in Docs Editors, Prashanth shares his expertise through insightful blogging since 2012. Explore his blog for practical tips and guidance on maximizing your spreadsheet skills.

Creating Sequential Dates in Equally Merged Cells in Google Sheets

Do you know how to create sequential dates in equally merged cells across a...

Running Total By Month in Excel

This tutorial demonstrates how to calculate the running total by month in a range...

SORT and SORTBY – Excel Vs Google Sheets

While Excel offers the SORT and SORTBY functions for sorting a table, Google Sheets...

Get Top N Values Using Excel’s FILTER Function

When using the FILTER function in Excel to extract the top N values, it's...

More like this

Creating Sequential Dates in Equally Merged Cells in Google Sheets

Do you know how to create sequential dates in equally merged cells across a...

Interactive Random Task Assigner in Google Sheets

You have multiple tasks and multiple people. Here's a fun way to randomly assign...

Google Sheets Bar and Column Chart with Target Coloring

To color each data point in the column or bar chart according to the...

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.