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

Creating a Log/Log Chart

If you need to create a chart that uses logarithmic values on both axes, it can be confusing how to get what you want. ...

Discover More

Word 2007 Terrific Tables (Table of Contents)

Word allows you to create and format tabular information using a powerful table editor. Discover the many ways that you ...

Discover More

Summing Based on Part of the Information in a Cell

Excel provides a variety of tools that allow you to perform operations on your data based upon the characteristics of ...

Discover More

Solve Real Business Problems Master business modeling and analysis techniques with Excel and transform data into bottom-line results. This hands-on, scenario-focused guide shows you how to use the latest Excel tools to integrate data from multiple tables. Check out Microsoft Excel 2013 Data Analysis and Business Modeling 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 to Even and Odd Values

Want to round values so they are always even or odd? You can do it quickly and easily by using the EVEN and ODD worksheet ...

Discover More

Avoiding Rounding Errors in Formula Results

Some formulas just don't give the results you expect. Sometimes this is due to the way that Excel handles rounding. ...

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 - 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.