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

Merging and Printing

When you merge information into a document, Word provides two different ways you can create your output. Here's an ...

Discover More

Getting Rid of Background Color in All Tables

When working with tables (particularly those created by others), you can spend a large amount of time getting the ...

Discover More

Word Count in Multiple Selections

Getting a word count for an entire document is easy. What you may not know is that some versions of Word can also provide ...

Discover More

Excel Smarts for Beginners! Featuring the friendly and trusted For Dummies style, this popular guide shows beginners how to get up and running with Excel while also helping more experienced users get comfortable with the newest features. Check out Excel 2013 For Dummies today!

More ExcelTips (ribbon)

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

Rounding Time

Need to round the time in a cell to a certain value? There are a couple of ways you can do this with a formula.

Discover More

Rounding to Two Significant Digits

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
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 eight more than 6?

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.