MROUND Function in Excel
MROUND is the MATH & TRIGNOMETRY function in excel and is used to convert the number to the nearest multiple numbers of the given number. For example, =MROUND(50,7) will convert the number 50 to 49 because number 7 nearest multiple 49, in this case, it has rounded down to the nearest value. Similarly, if the formula is =MROUND(53,7) then this will convert the number 53 to 56 because multiple number 7 nearest number for number 53 is 56, in this, it has rounded up to nearest multiple values odd number 7.
- Number: What is the number we are trying to convert to?
- Multiple: The multiple numbers we are trying to round the Number.
Here both the parameters are mandatory and both the parameters should include numerical values. We will see some of the examples of MROUND function practically.
Examples to use MRound Function in Excel
MROUND excel function rounds the number to the nearest multiple of the provided number. You must be thinking how does excel know whether to round up or round down, it depends on the result of the division.
For an example 16 / 3 = 5.33333, here decimal value is less than 0.5 so result of nearest multiple value of number 3 is 5, so 3 * 5 = 15. Here excel rounds down the value if the decimal value is less than 0.5.
Similarly look at this equation 20 / 3 = 6.66667, in this equation decimal value is greater than 0.5 so excel rounds up the result to 7, so 3 * 7 = 21.
4.9 (1,353 ratings) 35+ Courses | 120+ Hours | Full Lifetime Access | Certificate of Completion
So for this example consider the below data.
- Open excel MROUND function in cell C2 first.
- Select the Number argument as cell A2 value.
- Second argument Multiple is cell B2 value.
- Hit enter key. Copy and paste the formula to other cells to get the result.
We got the result in all the cells. Let’s look at each example individually now.
In the first cell, the equation reads 15/8 = 1.875, since the decimal value is >= 0.5 excel rounds up the number to the nearest integer value is 2. So here multiple numbers are 8 and the resulting number is 2, so 8 * 2 = 16.
Look at the second equal 17/5 = 3.4, here decimal is less than 0.5 so excel this time rounds down the number to 3 and the result is 5 * 3 = 15.
Like this excel MROUND function rounds down or rounds up the number to the nearest integer value of multiple numbers.
We have seen how MROUND function works, now we will see how we can apply the same to round up or down the time to the nearest multiple values.
From the above time table, we will convert the time to the nearest 45 minute time intervals. Below is the formula.
In this example I have supplied the multiple values as “0:45” this will be automatically converted to the nearest number “0.03125”. So the number “0.03125” is equal to 45 minutes when we apply the time format to this number in excel.
Things to Remember
- Both the parameters should be numbers.
- If anyone parameter is not numeric then we will get “#NAME?” error value.
- Both the parameters should have the same signs either positive or negative if both signs supplied in a single formula then we will get the “#NUM!” error value.
This has been a guide to MROUND Function in Excel. Here we learn how to use MROUND Function in Excel along with examples and a downloadable template. You may learn more about excel from the following articles –