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

Filling a Drawing Object

Want to add some spice to the graphics in your worksheets? There are many colors and effects in Excel that allow you take ...

Discover More

Filling a Range of Cells with Values

When writing a macro, you may want to fill a range of cells with different values. The easiest way to do this is to use ...

Discover More

Turning Off ScreenTips

All those little ScreenTips bug you when moving your mouse pointer over different parts of Word's interface? You can turn ...

Discover More

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!

More ExcelTips (menu)

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

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

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
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 7 + 0?

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.