bottom
Great ExcelTips!
         
Your e-mail address is safe!
Close Note

Tips.Net > ExcelTips Home > Worksheet Functions > Math and Trig Functions > Using the MROUND Worksheet Function

Using the MROUND Worksheet Function

Summary: Need to round to the nearest multiple of some value? The MROUND worksheet function can round to any nearest value you want to specify. (This tip works with Microsoft Excel 97, Excel 2000, Excel 2002, and Excel 2003.)

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


PivotTables Got You Perplexed? ExcelTips: PivotTables for the Faint of Heart shows how you can start using Excel's PivotTable tool right away to spin your data into gold! You discover how easy it really is to crunch the numbers you need to crunch. Uncover the power of the PivotTable Wizard, how to edit PivotTables, how to format them, how to customize them, and much more.
 
Check out ExcelTips: PivotTables for the Faint of Heart today!

Helpful Links

Ask an Excel Question
Make a Comment

Tips.Net Home
Vital News Home

ExcelTips FAQ
ExcelTips Premium

Learn Access Now

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

 

Great Info!

Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your e-mail address and click "Subscribe."
     
(Your e-mail address will never be shared with anyone, ever.)