Quick answer
Excel usually rounds only what a cell shows, not the value it holds. A narrow column, the General format or a number format with fewer decimal places displays fewer digits, while formulas keep using the full value. Widen the column or click Increase Decimal to see more digits. The value itself changes in only a few cases: a number longer than 15 digits, the ROUND function, and the option to set precision as displayed.
A price that shows 417 instead of 416.67, or a total that’s a cent off, usually comes from the way Excel shows a value. A cell keeps one number and can show it in many ways. A long account number that ends in zeros is the exception: there, Excel has dropped the digits.
What a cell shows and what it holds
Every cell has a value, the number Excel stores and calculates with, and a display, the way the number format and the column width let it appear. The two can differ: a cell can hold 416.666666666667 and show $416.67, or 417, depending on its format. Formulas always calculate with the stored value.
=1250/ 3, and only the format differs, so a formula that uses any of them gets the same value. In B3, =1250/3 returns $416.67.Why Excel rounds a number
The column is too narrow
The General format, which every cell starts with, shows as many decimals as fit. Make the column narrower and it drops decimals first; a large number can switch to scientific notation, such as 1.23457E+11. Double-click the right edge of the column’s letter to widen it, and the digits come back.
The format has fewer decimals
A currency, accounting or number format shows a fixed number of decimals, usually two. Increase Decimal and Decrease Decimal, on the Home tab in the Number group, change how many you see; they don’t change the value. Format Cells (Ctrl+1, Cmd+1 on a Mac) sets an exact number of decimal places.
A total looks a cent off
Because formulas use the full values, a total can disagree with the rounded amounts above it. Say an invoice works out 7.5% VAT on each line:
When each amount on a printed invoice must be exactly what’s charged, round it with ROUND as you work it out: =ROUND(B4*$B$1,2) rounds to two decimals, the cent, so the lines and the total agree.
The number has more than 15 digits
Excel stores numbers with 15 significant digits of precision. Type a 16-digit card number and the last digit becomes 0; a longer number loses more. That can’t be undone by changing the format, because the digits were never stored.
For card numbers, account numbers and other IDs nobody adds up, store them as text: format the column as Text before you type, or type an apostrophe first, such as '1234567812345678. The apostrophe doesn’t show in the cell.
A result has a tiny error
Computers store most decimal fractions as close binary approximations, so a calculation can come out a hair off. Microsoft’s own example is =(43.1-43.2)+1, which shows 0.9 but holds 0.899999999999999. You won’t see it in a normal format, but it can make two values that look equal compare as different. Round the result, such as =ROUND((43.1-43.2)+1,2), before you compare it.
Round for real, when you mean it
Formatting is the right tool when you only want a tidier display. When the rounded amount is what counts, such as a price or a tax line, round the value itself:
| Function | What it does | Example with 2.678 |
|---|---|---|
| ROUND | Rounds to the nearest; a 5 rounds away from zero | =ROUND(A2,2) gives 2.68 |
| ROUNDUP | Always rounds away from zero | =ROUNDUP(A2,1) gives 2.7 |
| ROUNDDOWN | Always rounds toward zero | =ROUNDDOWN(A2,1) gives 2.6 |
There’s also an option that makes Excel store every value as it’s displayed: File > Options > Advanced, then Set precision as displayed under When calculating this workbook. It changes the stored values across the whole workbook and can’t be undone, so use ROUND where you need it instead.
Practice this in ProExcel
Work out the VAT on every invoice line, rounded to the cent.
ProExcel checks your answer the moment you press Enter.
The free lesson Round numbers the right way has more on ROUND, and Show money with number, currency and accounting formats covers what formats do to the display. For shares and rates, how to calculate a percentage in Excel shows the formulas.
Frequently asked questions
Why is Excel rounding my numbers?
Usually it isn’t changing the number, only showing fewer digits, because the column is narrow or the format has few decimal places. Widen the column or click Increase Decimal, and the hidden digits appear.
How do I stop Excel from rounding numbers?
Widen the column and click Increase Decimal, or set more decimal places in Format Cells. For long IDs such as card numbers, format the cells as Text before you type them.
Why does Excel change the last digits of a long number to 0?
Excel keeps 15 significant digits, so digits after the fifteenth are stored as zeros. Store IDs like that as text, with the Text format or a leading apostrophe.
Why is my Excel total off by a cent?
The total adds the full values while the cells above show them rounded to the cent. Round each line with =ROUND(…,2) so the amounts and the total match.
How do I round a number in Excel?
Use ROUND with the number of decimals you want, such as =ROUND(A2,2) for cents. ROUNDUP and ROUNDDOWN always round one way.
Practice this with real formulas
ProExcel's free course turns each idea into a formula you type yourself, checked the moment you press Enter. Five minutes a lesson, on your phone or computer.