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 value od number 7.
Syntax of MROUND Function in Excel
MROUND syntax consists of two mandatory arguments or parameters. Below is the syntax of the MROUND function excel.
- 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 excel function practically.
Examples of MROUND Function in Excel
There can be a lot of examples regarding the 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.
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 equation reads 15 / 8 = 1.875, since decimal value is >= 0.5 excel rounds up the number to 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 excel 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 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 “#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 downloadable excel template. You may learn more about excel from the following articles –
- Excel Evaluate Formula
- How to Create Dot Plots in Excel?
- ROUND Function in Excel
- ROUND Function in VBA
- ABS Function in Excel
- INT Function in Excel
- 35+ Courses
- 120+ Hours of Videos
- Full Lifetime Access
- Certificate of Completion
- Basic Excel Training
- Advanced Excel Training
- Basic & Advanced VBA Course
- Excel Dashboard Course
- Data Analysis in Excel
- Create VBA Applications