Written by Allen Wyatt (last updated December 23, 2023)
This tip applies to Excel 2007, 2010, 2013, 2016, 2019, Excel in Microsoft 365, and 2021
Melissa was having a hard time understanding why Excel displays certain numbers in certain ways. She provided, as an example, the following steps:
When Melissa would do this, cell C2 would display the result as 99.99999999, and cell C3 would display the result as 100. (You may have to widen column C to see these results.)
To see why Excel does this, there are a few things you have to understand. First of all, when you create a new worksheet, all the cells are formatted using the General format. Using this format, information is displayed in a general manner (thus the format name). In this format, numbers are displayed using up to ten digits. It doesn't matter whether the digits are to the left or right of the decimal place; only a maximum of ten are displayed.
What happens if the number that you are entering has more than ten digits, or if the result of a formula has more than ten digits? Then Excel rounds the number so that no more than ten digits are displayed. Thus, 99.99999999 is displayed, but if you add one more digit, the rounded result is 100. Rest assured, however, that Excel continues to maintain the cell contents with fifteen digits of accuracy, even though fewer digits are displayed.
If the number you are entering contains nothing to the right of the decimal point, but there are more than ten digits in the number, then the General format results in the number being displayed using scientific notation.
There is one caveat to the above: if the General-formatted cell into which the value is placed is narrower than what is required to display the full number, then the value is rounded so that it can be displayed within the available column width. If you later adjust the column width so it is wider, then the number is reformatted so it is displayed with up to ten digits.
If you want to use more than ten digits to display your number, you need to explicitly format the cell. Either click on the Increase Decimal tool (Number group, Home tab of the ribbon) or display Format Cells dialog box and use the controls on the Number tab to control how the displayed number should be formatted.
ExcelTips is your source for cost-effective Microsoft Excel training. This tip (8032) applies to Microsoft Excel 2007, 2010, 2013, 2016, 2019, Excel in Microsoft 365, and 2021. You can find a version of this tip for the older menu interface of Excel here: Rounding in Results.
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!
Need to round values up to the next value that ends in 9? There are a number of ways you can accomplish the task through ...
Discover MoreWhen working with financial data, it's easy to round values to the nearest dollar. What if you want them rounded to the ...
Discover MoreHow to round values half way between two boundaries is apparently a topic of contention in some sectors of the ...
Discover MoreFREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."
2024-02-07 00:34:13
Michael van der Riet
Thanks, I didn't know about the ten-digit and fifteen-digit rules. This has led me to curse Excel sometimes for seemingly inexplicable behavior.
2023-12-23 13:20:00
Greg F Felts
Allen
I want to thank you for all the tips you have posted here for me to enjoy and learn from. I truely appreciate it. I am medically retired now (Not by choice) and no longer have the help from co-workers to stay on top of Excel. But You keep me updated. I also want to say a prayer for your parents as well as you. I am glad that you are a Christian. I know from experiance that caring for your parents is not an easy task. It is far easier when you have the Good Lord on your side to help. I wish you and ALL of yours a Very Merry Christmas, Prosperous and Happy New Year. Texas Ain't so bad once you get use to it. I retired USAF and traveled all over the world. seen some beautiful places but settled down and returned Home to Texas.
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.
FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."
Copyright © 2024 Sharon Parq Associates, Inc.
Comments