Please Note: This article is written for users of the following Microsoft Excel versions: 2007, 2010, and 2013. 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: Rounding Numbers.

Rounding Numbers

by Allen Wyatt
(last updated November 2, 2017)

2

Excel provides a number of built-in worksheet functions for rounding numbers. The exact function you should use depends on exactly what you need to do with a value.

The first worksheet function is ROUND. This function allows you to essentially round to any power of ten. The syntax is as follows:

=ROUND(num, digits)

The num argument is the number you want to round, while digits indicates how many digits you want the result rounded to. If digits is a positive value, then it represents the number of decimal places to use when rounding. Thus, if digits is 3, then num is rounded to three decimal places. If digits is zero, then ROUND returns a rounded whole number. If digits is a negative number, then ROUND returns a number rounded to the number of tens represented by digits. Thus, if digits is —2, then ROUND returns a number rounded to the nearest 100.

Two other worksheet functions that return rounded values are ROUNDUP and ROUNDDOWN. These functions use the same arguments as ROUND and behave virtually identically. The only difference is that ROUNDUP always rounds num up, meaning away from 0. ROUNDDOWN is the opposite, always rounding down, toward 0.

ExcelTips is your source for cost-effective Microsoft Excel training. This tip (11230) applies to Microsoft Excel 2007, 2010, and 2013. You can find a version of this tip for the older menu interface of Excel here: Rounding Numbers.

Author Bio

Allen Wyatt

With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He  is president of Sharon Parq Associates, a computer and publishing services company. ...

MORE FROM ALLEN

Opening a Workbook to a Specific Worksheet

When you open a workbook, Excel displays the worksheet that was visible when the workbook was last saved. You may want, ...

Discover More

Changing the Default Font

Don't like the font that Word uses for a default in your new documents? You can pick a different font, but the way you make ...

Discover More

Using Multiple Tables of Contents

Adding multiple tables of contents is a must for some types of document design. Here's a great overview of how you can add ...

Discover More

Professional Development Guidance! Four world-class developers offer start-to-finish guidance for building powerful, robust, and secure applications with Excel. The authors show how to consistently make the right design decisions and make the most of Excel's powerful features. Check out Professional Excel Development today!

More ExcelTips (ribbon)

Rounding in Results

Rounding is a fact of life when it comes to using formulas in a worksheet. Sometimes that rounding can be a bit confusing, ...

Discover More

Rounding to the Nearest Half Dollar

When working with financial data, it's easy to round values to the nearest dollar. What if you want them rounded to the ...

Discover More

Modified Rounding

Rounding is normally done so that values greater than or equal to .5 are rounded up and less than .5 are rounded down. What ...

Discover More
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

View most recent newsletter.

Comments

If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is 3 + 8?

2017-04-27 18:05:20

Dennis Costello

Don't forget FLOOR and CEILING - these are interesting and more flexible alternatives to ROUNDUP and ROUNDDOWN. The difference is that the second parameter is "significance" instead of "digits" - instead of returning the number which is a multiple of 10 to the power of "digits" it returns a number which is a multiple of "significance". If we allow only positive numbers, then, ROUNDUP(x, y) is equivalent to CEILING(x, 10^-y). But "significance" could, for instance, be 5 - in which case the value returned could be 0, 5, 10, 15, 20, etc. Or it could be 2.54, in which case you'd get the next (smaller or larger) number of centimeters that corresponds to an exact number of inches.

These functions have two quirks:
- the two parameters "Number" and "Significance" must both have the same sign (both positive or both negative) or you get a #NUM! error
- there is no function corresponding to ROUND - you're always either moving away from 0 (CEILING) or toward it (FLOOR).


2015-10-11 16:20:46

Nick Rea

If you want to round data just for presentation purposes and especially if you use these data items in subsequent calculations, it may be better to use a custom number format to achieve what you want. Otherwise you may accumulate rounding differences that make reconciliation difficult.


This Site

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.

Newest Tips
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

(Your e-mail address is not shared with anyone, ever.)

View the most recent newsletter.