Go Back

Excel MROUND Function

We use the MROUND function to round off a given set of numbers either up or down to the nearest specified multiple. The steps below will walk through the process.

Figure 1- Result of rounding off numbers using the MROUND function

General formula

=MROUND(num,multiple)

Formula

=MROUND (B5,C5)

Setting up the Data

The objective is to round off each number using the multiples as shown in figure 2

  • We will input the numbers in the range B5:B10 and titled them as “Number.
  • We will put the multiples in C5:C10 and title them as “Multiple.
  • Column D will contain the results after applying the MROUND function

Figure 2- Setting up the Data

Applying the MROUND function

  • We will click on Cell D5

 

  • We will insert the formula: =MROUND (B5,C5) into Cell D5

 

Figure 3 – Applying the MROUND function

  • We will press the Enter key

Figure 4- How to round off numbers using MROUND function

  • Using the fill handle, we will copy the formula to the other cells of the Result column

Figure 5 – Result of rounding off numbers using the MROUND function

Explanation

=MROUND (num,multiple)

The MROUND function rounds off numbers (“num”) to the nearest multiple that is specified. The MROUND function always rounds away from zero and the rounding will occur if the remainder from the left when dividing the number by the multiple is greater than or equal to half of the multiple values. Multiple must also have the same sign as the number. If the numbers and multiples do not have the same sign, then the #NUM error will be displayed as shown in figure 4, Cell D8.   

Instant Connection to an Expert through our Excelchat Service

Most of the time, the problem you will need to solve will be more complex than a simple application of a formula or function. If you want to save hours of research and frustration, try our live Excelchat service! Our Excel Experts are available 24/7 to answer any Excel question you may have. We guarantee a connection within 30 seconds and a customized solution within 20 minutes.

Did this post not answer your question? Get a solution from connecting with the expert.

Another blog reader asked this question today on Excelchat:
Here are some problems that our users have asked and received explanations on

got an error in this formula =IF(D18<5,((MROUND(D18,0.5)/0.5)*30)),IF(D18>5,((MROUND(D18,1)-5)*9)+80),IF(D18>12,((MROUND(D18,1)-12)*2.5)+200)
Solved by A. S. in 26 mins
I got this formula from help here =MROUND(C55,5). It works, but I just released that when the sum of c55 is 2.5, it rounds down to 0. I need it to round up to 5.
Solved by M. U. in 24 mins
I need a formula to convert entries in rows to columns. The first set of data is in the following cells; F3 to I3 including the formula mround(F3,:"0:30") to round the data G3 to J3 F4 to K3 G4 to N3 including the formula mround(G4,"0:15") to round the data The trouble is there isn't always only two rows of data. Sometimes there is 3 rows as the employee has taken 2 breaks. If this occurs these extra entries need to be moved to L3 and M3. There are also rows that have no time data as this is a payroll line. The empty rows can be 1 or 2 rows of empty data. The formula will need to be copied down 14000 lines of data.
Solved by X. J. in 20 mins

Leave a Comment

avatar