ROUND vs Number Format: Why Your Total Is Off by a Cent
By ExcelReady TeamUpdated 8 min read
The short answer
A number format only changes how a number looks: 1.566675 shown with two decimals still adds up as 1.566675. ROUND changes the stored value itself, so =ROUND(B2*F1,2) really is 1.57. Use formatting for tidy reports, and ROUND whenever the rounded figure feeds a total, a lookup or a check, such as tax lines on an invoice.
Key takeaways
- Number formatting changes what you see. Calculations still use the full stored value shown in the formula bar.
- ROUND changes the value itself, so later totals and comparisons use the rounded number.
- Lines that are only formatted can add up to a total that looks one cent out, even though Excel did the maths correctly.
- Round once, at the step where the money is really rounded. Rounding rates or unit costs too early makes errors bigger.
- Set precision as displayed rounds a whole workbook permanently. ROUND in the cells that need it is the safer fix.
On this page+
ROUND vs number format in Excel comes down to one question: do you want to change what the number looks like, or what it is? A number format hides extra decimals but keeps them in every calculation. ROUND throws them away, so later totals use the rounded figure. This guide is for anyone whose invoice, payslip or report total is off by a cent, and for anyone preparing for an Excel test that asks you to "round" a result.
ROUND vs number format: the difference at a glance#
A number format is a display setting. ROUND is a formula that returns a new number.
| Feature | Number format (Decrease Decimal, Format Cells) | ROUND function |
|---|---|---|
| What changes | Only what the cell shows | The value stored in the cell |
| Formula bar shows | The full value, such as 1.566675 | The rounded value, 1.57 |
| Totals and other formulas use | The full value | The rounded value |
| Can you undo it? | Yes, add decimals back at any time | Only by removing the ROUND |
| Needs a formula? | No | Yes: =ROUND(number, num_digits) |
| Shows trailing zeros (2.50)? | Yes | No, 2.5 stays 2.5 until you format it |
| Typical use | Tidy reports, dashboards, currency display | Money that is really rounded: tax lines, pay, prices |
Microsoft puts it plainly in its guide to stopping rounding: the number that appears in a cell is separate from the number stored in it. Everything in this article follows from that.
The invoice that is off by a cent#
Here is a small invoice with sales tax of 8.25% in F1. Column C works out the tax and is formatted to two decimals. Column D does the same sum inside ROUND.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Item | Net | Tax (formatted) | Tax (ROUND) |
| 2 | Desk lamp | 18.99 | 1.57 | 1.57 |
| 3 | HDMI cable | 6.49 | 0.54 | 0.54 |
| 4 | Wireless mouse | 24.95 | 2.06 | 2.06 |
| 5 | Stapler | 11.75 | 0.97 | 0.97 |
| 6 | Total | 62.18 | 5.13 | 5.14 |
The formulas are:
C2: =B2*$F$1
D2: =ROUND(B2*$F$1,2)
C6: =SUM(C2:C5)
D6: =SUM(D2:D5)Both columns look identical line by line. But click C2 and the formula bar result is 1.566675, not 1.57. The four stored values in column C are 1.566675, 0.535425, 2.058375 and 0.969375. They add up to 5.12985, which displays as 5.13.
Now add the visible numbers yourself: 1.57 + 0.54 + 2.06 + 0.97 = 5.14. A customer checking the invoice with a calculator gets 5.14 and the invoice says 5.13. Excel's maths is correct; the page just doesn't show the decimals it used.
Column D stores 1.57, 0.54, 2.06 and 0.97, so its total is 5.14 and the printed lines agree with the printed total. The grand totals differ too: =B6+C6 gives 67.30985 (shown as 67.31), while =B6+D6 gives 67.32.
Which total is "right" depends on your rules. Some businesses round tax on each line, others round once on the invoice total with =ROUND(SUM(B2:B5)*F1,2), which gives 5.13. Check with your finance team. What matters is that the lines you print add up to the total you print.
Can't Excel just use the displayed values?#
It can, but you probably shouldn't. Set precision as displayed makes Excel cut every number in the workbook to the decimals it shows.
- Windows: File > Options > Advanced, then under When calculating this workbook, tick Set precision as displayed.
- Mac: open Excel > Preferences (called Settings in newer versions), choose Calculation and tick the precision-as-displayed option.
- Excel for the web: you can't change this setting.
Microsoft warns in Set rounding precision that the option can make data increasingly inaccurate over time. It changes stored values permanently, across every sheet in the workbook, including unit costs and rates you never meant to round. ROUND in the few cells that need it is easier to see, check and undo.
When to use number formatting#
Use a number format when the full value is correct and you only want it to read well.
- Reports and dashboards. An average of 4.73829 sales looks better as 4.7, and nobody will add it up again.
- Currency and percentages. Showing 0.0825 as 8.25% or 1234.5 as $1,234.50 is formatting. Our guide to formatting numbers as currency and percentages covers the buttons and shortcuts.
- Inputs and rates. Keep a tax rate or exchange rate at full precision and just display fewer decimals.
- Showing trailing zeros. Only a format makes 2.5 display as 2.50.
To change decimals quickly, select the cells and use Home > Increase Decimal or Decrease Decimal. On Windows the key sequence is Alt, H, 0 to increase and Alt, H, 9 to decrease. For full control, open Format Cells with Ctrl+1 on Windows or ⌘1 on a Mac. Custom number formats go further, for example showing thousands as "K".
When to use ROUND#
Use ROUND when the rounded number is the real number: it gets paid, printed, compared or reused.
=ROUND(number, num_digits)num_digitsof 2 rounds to cents:=ROUND(1.566675,2)is 1.57.- 0 rounds to a whole number:
=ROUND(1234.5,0)is 1235. Halves round away from zero. - A negative number rounds to the left of the decimal point:
=ROUND(1234567,-3)is 1235000.
Use it for tax and discount lines on invoices, pay calculations, prices you will publish, and any result you will look up or test with IF. The ROUND function guide lists more examples. If you need to always round up or down instead, for example to bill whole hours, see ROUND vs ROUNDUP vs ROUNDDOWN. For simply cutting decimals off without rounding, compare INT vs TRUNC.
ROUND and formatting work well together. =ROUND(B2*$F$1,2) fixes the value, and a currency format makes it display as $1.57.
Edge cases and common mistakes#
Most "Excel is wrong" moments with decimals are one of these.
- Testing a formatted value.
=C6=5.13returns FALSE, because C6 holds 5.12985. An exact-match XLOOKUP or VLOOKUP for 1.57 in column C returns #N/A for the same reason. Compare rounded values instead:=ROUND(C6,2)=5.13returns TRUE. - Rounding too early. A part costs 0.4567 and you order 1,000.
=ROUND(0.4567,2)*1000gives 460, but=ROUND(0.4567*1000,2)gives 456.70. Rounding the unit cost first added 3.30. Round the final money amount, not the inputs. - A rate that looks rounded. If F1 is formatted as a percentage with no decimals, it shows 8%, but the formulas still use 8.25%. Anyone who checks your maths with 8% gets different answers.
- Narrow columns. In the General format, a narrow column shows fewer decimals than the cell holds. Widen the column before you trust what you see.
- Thousands formats. A format that shows 1234567 as "1,235" (thousands) still stores 1234567. Use
=ROUND(A2,-3)only if the rounded thousands are the real figure. - Expecting ROUND to show zeros.
=ROUND(2.5,2)displays 2.5 in General format. Add a two-decimal format. - Tiny floating-point leftovers. Excel stores numbers in binary, so a result can be 0.899999999999999 instead of 0.9. ROUND cleans this up; see why Excel shows tiny rounding errors.
If a total looks wrong for another reason, such as numbers stored as text or a range that misses a row, work through why your Excel total is wrong.
What a job test usually checks#
An automated Excel test reads the stored value of a cell, not what it displays. So if a task says "round the tax to 2 decimal places" and you only click Decrease Decimal, the checker still sees 1.566675 and can mark the answer wrong. Use ROUND when the task says round.
When a task says format, display or show two decimals, it wants a number format, and wrapping everything in ROUND changes values the task didn't ask you to change.
In interviews, "What is the difference between ROUND and formatting a cell?" is a common question. A strong answer is one sentence: formatting changes how the number looks, ROUND changes the value that later formulas use. Then give an example, like the invoice above.
How to decide: a quick checklist#
Answer these in order. The first "yes" decides.
- Does the task or your company's rule say the amount is rounded (tax per line, pay to the cent)? Yes: use ROUND at that step.
- Must printed lines add up exactly to a printed total? Yes: ROUND each line, then SUM the rounded lines.
- Will another formula, IF test or lookup compare this exact number? Yes: use ROUND, or round inside the comparison.
- Is this an input such as a rate, unit cost or exchange rate? Yes: keep full precision and format it.
- Are you only making a report easier to read? Yes: format it.
- Do you need trailing zeros like 2.50 or a currency sign? Yes: format it, on top of ROUND if you used one.
Our recommendation#
Keep full precision by default and use number formats for everything people only read. Add ROUND at the one point where money is really rounded in your process, usually each invoice or payslip line, and nowhere earlier. Avoid Set precision as displayed unless you understand that it permanently changes the whole workbook.
When a total looks a cent out, click the cells above it and read the formula bar. If the stored values have more decimals than you see, you have found the cause, and ROUND is the fix.
Practise it#
Try the invoice exercise on this page: round the tax in D2 and compare it with the formatted line next to it. Then work through the ROUND, ROUNDUP and ROUNDDOWN lesson, which shows the difference between rounding and formatting on a price list. The more formatting lesson covers comma style, dates and resetting a cell to General, so you can control what a number looks like without changing it.
Try it yourself
This is a live spreadsheet. Type the formula in the green cell and press Enter.
Column C holds the unrounded tax. Formatting it to 2 decimal places would only change what is shown, so the lines could add up to a total that looks a cent out. In D2, work out the tax on B2 at the rate in F1 and round it to 2 decimal places with ROUND, so the stored value matches what is printed.
| A | B | C | D | E | F | G | |
|---|---|---|---|---|---|---|---|
| 1 | |||||||
| 2 | |||||||
| 3 | |||||||
| 4 | |||||||
| 5 | |||||||
| 6 | |||||||
| 7 | |||||||
| 8 |
Tip: Put the whole tax calculation inside ROUND: =ROUND(net * rate, 2). Lock F1 with $ signs so the formula could be filled down.
Practise this in a lesson
Frequently asked questions
Does formatting a cell to 2 decimal places round the number in Excel?
No. It only rounds what you see. The cell keeps its full value, which you can check in the formula bar, and every formula that uses the cell works with that full value.
Why does my Excel total not match the numbers I can see?
The cells above the total are probably formatted to fewer decimals than they really hold. Excel adds the hidden decimals, so the total can be a cent away from the visible numbers. Round each line with ROUND if the lines must add up on paper.
Should I use ROUND or Decrease Decimal?
Use Decrease Decimal (or Format Cells) when you only want a tidier look. Use ROUND when the rounded number will be used in another formula, compared with something, or must match a printed total.
Is Set precision as displayed a good idea?
Rarely. It permanently cuts every number in the workbook to the decimals it shows, and Microsoft warns that you can't get the lost digits back. ROUND in the specific cells that need it is safer and easier to check.
Does ROUND add trailing zeros, like 2.50?
No. ROUND returns a number, and 2.5 is the same number as 2.50. To show the zero, apply a number format with two decimals as well.