Excel provides several different worksheet functions you can use to round a value in differing ways. For instance, you may want to round a number to some odd value, such as rounding to the nearest multiple of 7 or to the nearest 50.
For these times, you should use the MROUND worksheet function. The syntax for the MROUND function is as follows:
=MROUND(num, multiple)
The num argument is the number you want to round, while multiple is the value you want used in the rounding. Thus, if you want to round to the nearest 50, then multiple would be 50.
If you decide to use MROUND, it is important to remember that num and multiple must be the same sign. If one of them is positive and the other negative, then Excel returns a #NUM! error.
ExcelTips is your source for cost-effective Microsoft Excel training. This tip (11117) applies to Microsoft Excel 2007, 2010, 2013, 2016, 2019, and Excel in Office 365. You can find a version of this tip for the older menu interface of Excel here: Using the MROUND Worksheet Function.
Comprehensive VBA Guide Visual Basic for Applications (VBA) is the language used for writing macros in all Office programs. This complete guide shows both professionals and novices how to master VBA in order to customize the entire Office suite for their needs. Check out Mastering VBA for Office 2010 today!
When processing data it is not unusual to need to round that data in some way. For instance, you may need to round a ...
Discover MoreExcel provides a variety of functions you can use to round values in any number of ways. It does not, however, provide a ...
Discover MoreNeed to round a value by a power of 10? You can do it by using the ROUND function as described in this tip.
Discover MoreFREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."
2016-02-26 10:32:33
Peter Atherton
Joe
Try this
=INT(A1)+MROUND((A1-INT(A1))*100,30)/100
2016-02-24 16:28:01
I need help in round an Excel cell number to the nearest 30 cents. Example, I have amount $4.40, I need the cell to show $4.30. If the cell amount is $4.50, I need the cell to show $4.60. I tried =ROUND(cell no.,.3) and =MROUND(cell no.,.30) Neither does not work like they say it will????
thanks......Joe
2015-07-07 20:49:26
Maarten Daams
MROUND can also be used with fractions. For example, MROUND(1.53,0.05) will return 1.55
2015-06-22 09:47:33
Very nice. Much easier than nesting some other computations into the regular rouding function (eg to round to the nearest $.25)
I can see this very useful for budgeting purposes when rounded #s are preferred. One could also incorporate an "if" stmt or lookup to round to increasingly larger amts as the base amt increases. Thanks for the tip!
2015-06-22 08:17:26
Brian Walker
I use MROUND() in an automated stock replenishing application for field sales. MROUND() is used to round sales rep product requests to the nearest case quantity. ...A very useful function.
2015-06-20 05:44:52
Wayne
Great tip & surprisingly very handy
Got a version of Excel that uses the ribbon interface (Excel 2007 or later)? This site is for you! If you use an earlier version of Excel, visit our ExcelTips site focusing on the menu interface.
FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."
Copyright © 2021 Sharon Parq Associates, Inc.
Comments