Field Guide

How to stop Excel from rounding numbers

Updated

When Excel rounds numbers you never asked it to round, it is almost always rounding only the display, and the fix is to give the display room: widen the column, click Home > Number > Increase Decimal, or set more decimal places in Format Cells. The stored value is intact: select the cell and the formula bar shows it in full, and calculations run on what is stored, not on what is shown. The grid renders a shortened figure when the cell’s number format shows fewer decimal places than the value carries, or when the column is too narrow for the whole number.

The exceptions are a formula that rounds on purpose, one workbook option covered below, and entries longer than Excel’s 15-digit limit, also covered below. If you came here wanting to round deliberately, that is the other page: the ROUND function guide covers ROUND, ROUNDUP, ROUNDDOWN, and their relatives.

Why Excel rounds numbers you never asked it to round

Microsoft’s support page on the problem opens with the distinction that explains nearly every case: “In Excel, the number that appears in a cell is separate from the number that is stored in the cell.” Microsoft’s example is a value with seven decimal places in a cell formatted to show two: the cell displays a rounded figure, either because of that format or because the column cannot fit the digits, while the stored number is untouched and is what Excel calculates with.

B2
fx
5.8512
A B
1 Item Rate
2 Fee 5.85
B2 is formatted to show two decimal places, so the grid renders 5.85. The formula bar above shows what the cell stores, 5.8512, and that stored value is what every calculation referencing B2 receives.

Three display mechanisms account for nearly all of it:

In every display case the formula bar is the tell. It shows the stored value, the one a formula in Excel reading that cell would receive, no matter what the grid is rendering.

How to stop Excel from rounding: the display fixes

Microsoft’s rounding overview files the decimal-place fixes below under display changes: the decimal places you see move, the number underneath does not. These are display repairs for a display problem.

1. Check the formula bar

Select the cell. If the formula bar shows the full value, proceed with the fixes below. If the formula bar shows the rounded value too, the stored number really was rounded: look for a ROUND family function in the formula, covered in the ROUND function guide, or the workbook option in the last section.

2. Widen the column

Double-click the boundary to the right of the column heading and the column resizes to fit its contents; drag the boundary instead for a custom width. Excel for Mac also documents a menu route: Format > Column > AutoFit Selection. Widening helps because General shows as many decimals as fit. If the cell shows ######## instead of digits, the column cannot fit the number at all at its current width, and Microsoft’s fix is the same double-click on the column header’s right border.

3. Click Increase Decimal

Select the cells, then click Home > Number > Increase Decimal, once per decimal place, until the places you need are visible. On a General formatted cell, Microsoft notes the format switches from General to Number as you click, with the column width adjusting on its own, so this one step handles both the format cause and the width cause.

4. Set the decimal places in Format Cells

For a lot of numbers at once, set the format explicitly. In Excel for Windows: on the Home tab, click the dialog box launcher next to Number, pick a category that has decimal places (Number, Currency, Accounting, Percentage, or Scientific), enter the count in the Decimal places box, and click OK. In Excel for the web the same dialog is behind Number Format > More Number Formats; in Excel for Mac it is Format > Cells, on the Number tab.

Long numbers: scientific notation and the 15-digit limit

A 12-digit account number in a General cell shows up in 1.23E+11 style. That is still display rounding: apply a different number format, such as Number, and the digits return, unchanged. The destructive case is longer entries: Excel keeps 15 significant digits, so a 16-digit code loses its trailing digits at entry, and no format change brings them back. Both stories, including why such codes belong in Text formatted cells before you type them, are covered in full in numbers stored as text in Excel.

Why the cells do not add up to the displayed total

The classic complaint: a column shows 8.12, 9.23, and 4.35, the total underneath shows 21.71, and anyone with a calculator makes it 21.70. The total is off by a penny, someone rechecks the SUM, and the SUM is right.

B5
fx
=SUM(B2:B4)
A B
1 Line item Amount
2 Materials 8.12
3 Labor 9.23
4 Freight 4.35
5 Total 21.71
B2:B4 store 8.124, 9.234, and 4.354; the two-decimal format displays 8.12, 9.23, and 4.35, which add to 21.70. SUM adds the stored values: 21.712, displayed as 21.71. Every cell is correct, and the sheet still does not tie.

Each cell stores more decimals than it shows, SUM adds the stored values, and the rounded renderings do not have to add up to the rounded total. Nothing is miscalculated; the display is reconciling a different sum than the reader is.

There are two honest ways out, and they are different decisions:

Do not ship a sheet that fails this test. Readers notice, and they assume the workbook is wrong, not that the rounding is cosmetic.

Set precision as displayed: the one setting that really rounds

Everything above changes rendering. One workbook option changes the numbers. In Excel for Windows, under File > Options > Advanced, in the When calculating this workbook section, sits the Set precision as displayed check box. Microsoft’s description: “This option forces the value of each number in the worksheet to be at the precision that is displayed on the worksheet.”

Microsoft documents it as a way that can often keep floating point rounding artifacts out of results when applied before formatting the data. Its note on the option warns that the effect can compound and leave data increasingly inaccurate over time, and it advises turning the option on only when you are certain the displayed precision preserves your data’s accuracy. Treat that warning literally. Once the option has run, the trimmed decimals are no longer stored anywhere in the workbook, so unticking the box or adding decimal places back to the format does not restore them.

If the goal is the penny problem above, the same page’s own tip points at a safer tool: ROUND, applied to the specific cells that need it, instead of a switch that rewrites every number in the worksheet to whatever its format happens to show.

The short version

Frequently asked questions

Why is Excel rounding my numbers?
Unless a rounding function, the Set precision as displayed option, or the 15-digit entry limit for very long numbers is involved, Excel is not changing your number; it is rounding the display. A number format that shows fewer decimal places than the value has, a column too narrow for the whole number, or the default General format fitting the number to the cell width all show a shortened figure while the full value stays stored. Select the cell and the formula bar shows what is really there, and calculations use that stored value, not the figure in the grid.
How do I stop Excel from rounding numbers?
Give the display room to show the whole value. Widen the column by double-clicking the boundary to the right of the column heading, click Increase Decimal on the Home tab once for each decimal place you want back, or set an exact number of decimal places through the Format Cells dialog: the dialog box launcher next to Number on the Home tab in Excel for Windows, the Format menu in Excel for Mac, or More Number Formats in Excel for the web. All of these change what is shown; the stored value was never touched.
Why do my cells not add up to the total Excel shows?
Because each cell displays a rounded figure but stores more decimals, and SUM adds the stored values. Three cells storing 8.124, 9.234, and 4.354 show 8.12, 9.23, and 4.35 at two decimal places, which add to 21.70, while the stored total of 21.712 displays as 21.71. Either show more decimal places so the visible figures reconcile, or apply the ROUND function to the data so the stored values match what is displayed.
What does Set precision as displayed do in Excel?
It is the one option that genuinely rounds your data. It sits in Excel for Windows under File, Options, Advanced, in the When calculating this workbook section, and it changes each stored number to match the precision its format shows on the sheet. Microsoft's note on the option warns that the effect can compound, leaving data increasingly inaccurate over time, and advises using it only when you are certain the displayed precision preserves your data's accuracy. Once it has run, the trimmed decimals are no longer stored, so changing the format back does not restore them.
Why did Excel turn my long number into something like 1.23E+11?
Excel's default General format shows numbers of 12 or more digits in exponential style. That is display only: apply a different number format, such as Number, and the digits come back. The exception is entries of 16 digits or more. Excel keeps 15 significant digits, so everything past the 15th digit becomes a zero at entry, and codes that long must go into Text formatted cells, because by the time you reformat, the trailing digits are already gone.

Catch the errors before they ship

Reviewing a change to a model? Compare the two versions in your browser and see every changed cell, formula, and value. It's free, and nothing leaves your computer.