Please Note: This article is written for users of the following Microsoft Excel versions: 97, 2000, and 2003. If you are using a later version (Excel 2007 or later), this tip may not work for you. For a version of this tip written specifically for later versions of Excel, click here: Rounding to Two Significant Digits.

Rounding to Two Significant Digits

Written by Allen Wyatt (last updated August 5, 2020)
This tip applies to Excel 97, 2000, and 2003


Tammy needs to round values in a worksheet to two significant digits. For instance, if a cell contains 137, it should round to 140; if it contains 0.0005937 it should round to 0.00059; and if it contains 156735.32 it should round to 160000. She wonders if there is a simple formula to round any given number to only two significant digits.

Of course, it depends on what your definition of "simple" is. Fact of the matter, though, is that there are several different formulas you can use to get the desired result. Assuming that your original value is in cell A1, you can use any of the following representative formulas:

=ROUND(A1/(10^(INT(LOG10(ABS(A1)))+1)),2)*(10^(INT(LOG10(ABS(A1)))+1))
=ROUND(A1,-(INT(LOG(ABS(A1),10))+1)+2)
=FIXED(A1,1-INT(LOG10(ABS(A1))))
=ROUND(A1,1-INT(LOG(ABS(A1))))

These formulas will work with either positive or negative values just fine. The LOG (or LOG10) function is used to determine the number of digits either to the left or right of the decimal place before the first significant digit occurs. The INT of that function actually provides a number that is one less than the number of digits required, so that is why the value has 1 added to it. We can then round using that number of digits.

If you think that you may want to use a different number of significant digits than two, then you can use either of the following formulas:

=ROUND(A1,2-INT(LOG(ABS(A1)))+1)
=ROUND(A1,2-INT(LOG10(ABS(A1)))+1)
=FIXED(A1,2-INT(LOG10(ABS(A1)))-1)

All you need to do is change the 2 to reflect any number of significant digits you want. More information about significant digits in Excel can be found here:

<href="https://excel.tips.net/T001983_Thoughts_and_Ideas_on_Significant_Digits_in_Excel.html">http://excel.tips.net/T001983

ExcelTips is your source for cost-effective Microsoft Excel training. This tip (10396) applies to Microsoft Excel 97, 2000, and 2003. You can find a version of this tip for the ribbon interface of Excel (Excel 2007 and later) here: Rounding to Two Significant Digits.

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

Equation Editor Font Color

If you want to change the color used by the Equation Editor, you may be out of luck. In fact, the best solution may be to ...

Discover More

Creating a New Document in VBA

When working with documents in a macro, it makes sense that you may need to create a document from time to time. Here's ...

Discover More

Navigating Your Document Using Outline View

When you need to get around a long document, a really helpful method is to use the Outline view built into Word. This tip ...

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 (menu)

Rounding in Results

Rounding is a fact of life when it comes to using formulas in a worksheet. Sometimes that rounding can be a bit ...

Discover More

Rounding Up to the Next Half

When processing data it is not unusual to need to round that data in some way. For instance, you may need to round a ...

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
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}] (all 7 characters, in the sequence shown) 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 one less than 9?

There are currently no comments for this tip. (Be the first to leave your comment—just use the simple form above!)


This Site

Got a version of Excel that uses the menu interface (Excel 97, Excel 2000, Excel 2002, or Excel 2003)? This site is for you! If you use a later version of Excel, visit our ExcelTips site focusing on the ribbon 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.