Search results
If you need to round a number to a given (variable) number of specified digits or figures, you can do so with an elegant formula that uses the ROUND and LOG10 functions. In the example shown, the formula in D6 is as follows: =ROUND(B6,C6-(1+INT(LOG10(ABS(B6)))))
27 sty 2022 · Here’s what the formula does in a nutshell: 1. ABS converts the value to a positive value. 2. LOG10 finds the exponent of the value. 3. INT removes the decimal from the value. 4. ROUND then finds the number of significant figures to round to.
18 gru 2013 · =ROUND(value,sigfigs-1-INT(LOG10(ABS(value)))) with value replaced by the number I am using and sigfigs replaced with the number of significant figures I want. This formula works sometimes, but other times it doesn't. For instance, the value 18.036, will change to 18, which has 2 significant figures.
8 wrz 2022 · This tutorial demonstrates how to limit decimal places (set the number of significant figures) for a value in Excel and Google Sheets. You can either use the ROUND Function to limit decimal places in Excel, or you can use cell formatting to limit the number of decimal places displayed.
For example, to round 2345678 down to 3 significant digits, you use the ROUNDDOWN function with the parameter -4, as follows: = ROUNDDOWN(2345678,-4). This rounds the number down to 2340000, with the "234" portion as the significant digits.
Rounding to the nearest significant values in Excel can be done with a choice of direction: to the nearest smaller or larger round number. To do this, use formulas with the FLOOR.MATH and CEILING.MATH functions.