Bookmark and Share

Search Google

Other Rounding Functions in Microsoft Excel:
ROUNDUP, ROUNDDOWN, MROUND, EVEN, ODD, and TRUNC

This Keynote Support tutorial teaches the Microsoft Excel functions of ROUNDUP, ROUNDDOWN, MROUND, EVEN, ODD, and TRUNC. It provides examples that show how these functions can be used in spreadsheets.

Please note that the Excel ROUND function is taught in a separate tutorial, Fabulous Examples of Excel Functions: the ROUND Function.

Author: Keynote Support

For newbies, we recommend the video-based course Excel 2010 Tutorial for Beginners. We have this course (over 9 hours of hands-on lessons) and find it well done and a good value. An advanced course is also available.

Don't forget that every Excel function must begin with an equal (=) sign unless it's imbedded inside another function. Now - click on a link below to go directly to that rounding function.

ROUNDUP and ROUNDDOWN

These two functions are similar except ROUNDUP always rounds up a number, while ROUNDDOWN always rounds down a number. The syntax of the ROUNDUP and ROUNDDOWN functions is:

ROUNDUP(number,number-of-digits)

ROUNDDOWN(number,number-of-digits)

… where number is the number to be rounded, and number-of-digits is the number of decimal places or place value that Excel should round to.

To determine the "number-of-digits" properly, it is important to understand decimal places and place value. The image below shows three digits to the left of a decimal point, and three digits to the right. The place value of each position is listed below the numbers. Don't get "tens" confused with "tenths" and "hundreds" confused with "hundredths" - the place values to the right of the decimal point end in "ths."

The numbers shown in the digit boxes are the "number-of-digits" you would specify in the function to have Excel round to that decimal place or place value.

Let's look at 3 pairs of examples where the value of cell A3 is 7283.518:

=ROUNDUP(A3,2)  This Excel function rounds UP the number to the nearest hundredth, or to 2 decimal places. Excel will return a value of 7283.52.

=ROUNDDOWN(A3,2)  This Excel function rounds DOWN the number to the nearest hundredth, or to 2 decimal places. Excel will return a value of 7283.51.

=ROUNDUP(A3,-1)  This Excel function rounds UP the number in the tens position and returns a value of 7290.

=ROUNDDOWN(A3,-1)  This Excel function rounds DOWN the number in the tens position and returns a value of 7280.

=ROUNDUP(A3,-3)  This Excel function rounds UP the number in the thousands position and returns a value of 8000.

=ROUNDDOWN(A3,-3)  This Excel function rounds DOWN the number in the thousands position and returns a value of 7000.

MROUND

The MROUND returns a number that is rounded to the nearest instance of a specified multiple. A multiple of a number is another number that can be divided into evenly by the multiple. For example, some of the multiples of 10 are: 10, 20, 30, 40, etc., because 10 divides into these numbers evenly. The syntax of the MROUND function is:

MROUND(number,multiple)

… where number is the number to round, and multiple is the multiple to which the number should be rounded.

The key to the MROUND function is that Excel rounds to the nearest multiple. MROUND rounds up the number if, when dividing the number by the multiple, the remainder is greater than or equal to .5. In other words, Excel rounds up if the number is halfway or more to the next multiple. It may be clearer if we look at some examples.

=MROUND(11,3) instructs Excel to round the number 11 to the nearest multiple of 3. Multiples of 3 are: 3, 6, 9, 12, 15, etc. The number 11 is between 9 and 12, but it is more than halfway between 9 and 12, so Excel will round up to 12. Doing the math, 11 ÷ 3 = 3.6667. The decimal portion, .6667, is ≥ .5, Excel will round up.

=MROUND(21,5) tells Excel to round the number 22 to the nearest multiple of 5. Multiples of 5 are: 5, 10, 15, 20, 25, etc. The number 21 is between 20 and 25, but it is much closer to 20, so Excel will round down to 20.

EVEN

The EVEN function rounds UP the specified value to the nearest even integer. This function is useful for processing items that come in pairs or even numbers only. If the value specified in the function is not a number, Excel returns the #VALUE! error. The syntax of the EVEN function is:

EVEN(number)

… where number is the value to be rounded to an even number. An Excel formula or function can be entered for the number argument.

Example: =EVEN(23) ... Excel returns a value of 24.

Example: =EVEN(2.56) ... Excel returns a value of 4.

Example: =EVEN(-2.56) ... Excel returns a value of -4.

ODD

The ODD function rounds UP the specified value to the nearest odd integer. If the value specified in the function is not a number, Excel returns the #VALUE! error. The syntax of the ODD function is:

ODD(number)

… where number is the value to be rounded to an odd number. An Excel formula or function can be entered for the number argument.

Example: =ODD(12) ... Excel returns a value of 13.

Example: =ODD(3.8) ... Excel returns a value of 5.

Example: =ODD(-3.8) ... Excel returns a value of -5.

TRUNC

The TRUNC function truncates a number by removing any decimal or fractional portion of the number. The syntax of the TRUNC function is:

TRUNC(number,number-of-digits)

… where number is the value you want truncated, and number-of-digits is the decimal place or place value where the truncation should occur. The default value for number-of-digits is 0 (zero) and can be omitted from the function.

Let's look at a few examples.

Example: =TRUNC(58.64) ... Excel returns a value of 58. We did not specify a number-of-digits as we just wanted Excel to throw away any decimal portion. This is the most popular and useful application of the TRUNC function.

Example: =TRUNC(58.64,1) ... Excel returns a value of 58.6. By specifying a value of 1 for number-of-digits, we have asked Excel to disregard all numbers to the right of the first decimal position.

Example: =TRUNC(58.64,-1) ... Using a negative "number-of-digits" is not very useful, but it is allowed. Recall that a negative "number-of-digits" refers to a place value to the left of the decimal point. Here we ask Excel to truncate all numbers to the right of the tens position, and Excel returns a value of 50. Excel won't eliminate the ones position, but fills it instead with with a 0 (zero).

In Conclusion

Don't forget that each Excel function begins with an equal = sign unless the function is imbedded inside of another function. In addition, it is advisable to lock any cell containing a formula or function, and then protect the worksheet to prevent accidental erasure. Instructions for locking cells and protecting worksheets are provided in the tutorial Excel Made Easy: A Beginner's Guide.

We hope this article has been helpful. Cheers!

Share |

Please link to this tutorial using the following HTML:

<a href="http://www.keynotesupport.com/excel-functions-rounding.shtml">Microsoft Excel Rounding Functions: ROUNDUP, ROUNDDOWN, MROUND, EVEN, ODD, and TRUNC</a>

Return to the top of Other Rounding Functions in Microsoft Excel: ROUNDUP, ROUNDDOWN, MROUND, EVEN, ODD, and TRUNC