
Tips.Net > ExcelTips Home > Worksheet Functions > Math and Trig Functions > Using the MROUND Worksheet Function
Summary: If you want to round a value to some multiple of a whole number, you’ll want to become familiar with the MROUND function. This tip explains how you can use this function. (This tip works with Microsoft Excel 97, Excel 2000, Excel 2002, Excel 2003, and Excel 2007.)
In the previous tip you learned how you can round numbers using regular worksheet functions. These functions work great when you want to round a number to some decimal position. What if you want to round a number to some odd value, however? For instance, what if you want to round a value to the nearest multiple of 7, or to the nearest 50?
For these times, you should use the MROUND worksheet function. This function is provided as part of the Analysis ToolPak; it is not inherent to Excel. To use it, install the Analysis ToolPak (which many people do when Excel is first installed), and then choose Add-Ins from the Tools menu to make sure the Analysis ToolPak is selected.
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.
Tip #2148 applies to Microsoft Excel versions: 97 2000 2002 2003 2007
Don't Go in Debt for Christmas! Tired of trying to keep up with the Joneses for Christmas? Want to enjoy the season rather than dread the aftermath? Learn how you can avoid the financial traps that spring up every Christmas.
Check out Top Fifteen Tips for Financing Christmas today!
It doesn't matter if you are a beginner or expert, the ExcelTips archives are the fastest way to improve your productivity. (more information...)
Ask an Excel Question
Make a Comment
ExcelTips FAQ
ExcelTips Premium
Beauty Tips
Bugs and Pests Tips
Car Tips
Cleaning Tips
College Tips
Cooking Tips
Excel2007 Tips
ExcelTips
Family Tips
Gardening Tips
Health Tips
Home Tips
Money Tips
Organizing Tips
Pet Tips
Word2007 Tips
WordTips
Advertise on the
ExcelTips Site