Please Note: This article is written for users of the following Microsoft Excel versions: 2007, 2010, 2013, 2016, 2019, and Excel in Office 365. If you are using an earlier version (Excel 2003 or earlier), this tip may not work for you. For a version of this tip written specifically for earlier versions of Excel, click here: Using the MROUND Worksheet Function.
by Allen Wyatt
(last updated June 20, 2015)
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:
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 More
Excel provides a variety of functions you can use to round values in any number of ways. It does not, however, provide a ...Discover More
Need to round a value by a power of 10? You can do it by using the ROUND function as described in this tip.Discover More
FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."
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.