Please Note: This article is written for users of the following Microsoft Excel versions: 2007, 2010, 2013, 2016, 2019, Excel in Microsoft 365, and 2021. 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: Thoughts and Ideas on Significant Digits in Excel.
Written by Allen Wyatt (last updated August 6, 2022)
This tip applies to Excel 2007, 2010, 2013, 2016, 2019, Excel in Microsoft 365, and 2021
Steve Aprahamian contributed some great observations and thoughts on the topic of significant digits and working in Excel. Steve works with numbers and their statistical variability as a large part of his profession. (He is a Ph.D. chemist.) His thoughts are presented in this tip and should be helpful to many readers.
It does not matter how many significant figures you use in displaying values in Excel, as the program will always use 15 significant digits in its calculation. You can ROUND the values (changing the displayed decimal places does not change the value used in the calculation; the ROUND function does), but the accepted practice has always been to include all the figures you have for all your calculations and ROUND at the end to the appropriate number of significant digits. This actually improves the precision of your calculations.
The easiest thing to do is to ignore significant digits and just display all final calculations with two or three decimal places. Fewer does not provide enough information, while more gives people the impression that you are anal-retentive, pedantic, or ignorant in the meaning of significant figures. (I once had a college instructor who deducted points if you did not use significant digits. If the problem, as stated, resulted in an implied 1.23 result, answering 1.2345678901—the result displayed by the calculator—was considered incorrect and points were deducted.)
If you want to keep track of significant digits, the easiest way is to keep a value of significant digits for each number you have. With a value and the number of significant digits, Excel can calculate the number of decimal places and you can display your final value with this information. Significant digits and the number of decimal places are not independent; the decimal places come from the significant digits and the value.
Given a value (X) and the number of significant digits (SD), the number of decimal places is given by the following formula:
=SD - INT(LOG10(X)) - 1
You can then convert the appropriate value to text by using:
=FIXED(X, SD - INT(LOG10(X)) - 1)
ROUND will not work, since you must also change the number of fixed decimal places in the display. The VALUE function can be used with the "FIXED text" to convert the text to a numeric value for calculations.
Keeping track of significant digits is probably going to be a real pain, however. It is important to be aware of a couple of things. First, when you multiply or divide you must pay attention to significant digits. The number of significant digits in the result is the same as the minimum number of significant digits for each of the operands. For instance, consider the following equation:
3.1 * 3.45678
The answer to this equation would only have two significant digits, because one operand has two and the other has six, and the result will have the minimum of those two. Thus, the answer to the equation would be 11, which has two significant digits. Note, as well, that even though both operands had at least one decimal place, the result does not, as that would give the result too many significant digits. Decimal places are not considered in the result.
Second, when you add or subtract, you must pay attention to decimal places, not to significant digits. The number of decimal places in the result is the same as the minimum number of decimal places for each of the operands. For instance, consider the following equation:
23.1 + 103.789120
The answer to this equation would have one decimal place, because one operand has one decimal place and the other has six, and the result will have the minimum of those two. Thus, the answer to the equation would be 126.9, which has a single decimal place. The number of significant digits in the operands is not considered in the case of addition and subtraction.
It can be noted that an even better way to accomplish the control of significance is to use propagation of error techniques. You can keep track of the variability (variance, standard deviation, or some other determination of "error") and actually determine the variability of the final result. You would report a value like 1.23 +/- 0.05 or 1,234 +/- 45. This method gives a better determination of what the actual significant digits are. This approach, of course, is best left to a separate discussion.
Without an explicit variability, significant digits, for the most part, only imply the variability in the value. The implication is that the number is +/- one-half of the last significant digit. For instance, a result of 1.23 suggests (with no other information) an actual value between 1.225 and 1.235, while a result of 12 suggests an actual between 11.5 and 12.5.
Some additional comments on significant digits:
ExcelTips is your source for cost-effective Microsoft Excel training. This tip (12083) 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: Thoughts and Ideas on Significant Digits in Excel.
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!
Want to provide a bit of contact information in a workbook? A great place to do it (out of sight, but not inaccessible) ...
Discover MoreSometimes it is necessary to print a worksheet to see how the data it contains appears. This may not be necessary, ...
Discover MoreSynchronous scrolling of different windows can be very helpful with some worksheets. Excel allows you to synchronize the ...
Discover MoreFREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."
2022-08-07 17:11:51
Dave Bonin
Significant digits work, but only to a limited extent. They're merely an approximation of precision.
Consider the following two numbers: 100.1 and 999.9
If all of their digits are valid, then the first number is precise to 0.1%, while the second number is precise to 0.01%.
That's a 1-to-10 difference, yet significant digits would have you assume they're both equally precise.
Further, going back to my linear algebra days from 40 ± 1 years ago, you need to keep all of the digits in your calculations and save your rounding process of choice for the end result.
Note to QC fellows: I'm not getting into a discussion of accuracy, precision and resolution.
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