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

Randomly Assigning Names to Items

If you need to randomly match up items in two lists, there are a variety of techniques you can use. Here are a couple of ...

Discover More

Deleting Everything Up to a Character Sequence

Sometimes you have too much information in a cell and you need to "pare down" what is there to get to the info you really ...

Discover More

Last Document Saves Not Saved

Click the Save button and you expect your document to be saved, right? What if you later discover it wasn't really saved? ...

Discover More

Program Successfully in Excel! John Walkenbach's name is synonymous with excellence in deciphering complex technical topics. With this comprehensive guide, "Mr. Spreadsheet" shows how to maximize your Excel experience using professional spreadsheet application development tips from his own personal bookshelf. Check out Excel 2013 Power Programming with VBA today!

More ExcelTips (ribbon)

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 the Nearest Even Integer

Do you need your numbers to be rounded to an even integer value? How you accomplish the task depends on the nature of 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. ...

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 9 + 2?

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.