Rounding to a number of significant figures — 3 sig figs of 12,345 is 12,300; of 0.0④567 is 0.0457 — isn’t built in, but a short ROUND + LOG10 formula does it for numbers of any magnitude.
The example
The same precision (3 sig figs) across very different magnitudes.
| A | B | |
|---|---|---|
| 1 | Value | 3 sig figs |
| 2 | 12,345 | 12,300 |
| 3 | 0.045678 | 0.0457 |
| 4 | 987.6 | 988 |
The formula
Three significant figures, whatever the size:
How it works
The formula figures out where the significant digits start:
LOG10(ABS(A2))gives the order of magnitude — for 12,345 it’s about 4.09;INTmakes it 4.- For N significant figures you want to round at decimal place
N - 1 - magnitude— here3 - 1 - 4 = -2, i.e. the hundreds place. ROUND(A2, -2)rounds 12,345 to12,300— exactly 3 significant figures.- For 0.045678 the magnitude is −2, so it rounds at the 4th decimal →
0.0457.
Guard against zero. LOG10(0) errors, so wrap it: =IF(A2=0, 0, ROUND(A2, 3-1-INT(LOG10(ABS(A2))))) returns 0 for a zero input.
Try it: interactive demo
Enter a value and how many significant figures.
Variations
Guard against zero
Avoid the LOG10(0) error:
Different precision
Change the leading number for 2 or 4 sig figs:
Significant figures as a cell
Drive it from D1:
Pitfalls & errors
LOG10(0) and negatives. Zero errors and negatives need ABS (already in the formula). Guard zero with the IF shown above.
This rounds the value, not the display. The stored number changes — good for further math, but if you only want a display format, that’s a different tool.
Trailing significant zeros won’t show as a number (e.g. 12,300 with 3 sig figs vs 12,340). If you need to display a fixed count of sig figs, combine with TEXT.
Practice workbook
Frequently asked questions
How do I round to significant figures in Excel?
How do I avoid the LOG10 error on zero?
Does this change the number or just how it looks?
Stop fighting formulas. Learn them in a day.
This recipe is one of hundreds of real-world formulas we teach. Our Excel Formulas & Functions class covers lookups, logic, text, and dynamic arrays hands-on — live in Dallas–Fort Worth, Houston, Austin, Oklahoma City, Denver, or online.
See the Formulas & Functions Class