How to Round Numbers in Excel and Google Sheets
Rounding looks simple, but Excel and Google Sheets have a whole family of functions, and picking the wrong one is a common cause of totals that are a cent out. Here is what each does, with results you can check.
The rounding functions at a glance
| Formula | Result | What it does |
|---|---|---|
| =ROUND(3.14159,2) | 3.14 | Nearest, to 2 decimal places |
| =ROUND(2.5,0) | 3 | Halves round away from zero |
| =ROUND(-2.5,0) | -3 | Also away from zero for negatives |
| =ROUND(1250,-2) | 1300 | Negative digits round to tens, hundreds, thousands |
| =ROUNDUP(3.141,2) | 3.15 | Always away from zero |
| =ROUNDDOWN(3.149,2) | 3.14 | Always towards zero |
| =MROUND(17,5) | 15 | Nearest multiple of 5 |
| =CEILING(17,5) | 20 | Up to a multiple of 5 |
| =FLOOR(17,5) | 15 | Down to a multiple of 5 |
| =INT(-7.9) | -8 | Down to the next whole number |
| =TRUNC(-7.9) | -7 | Just cuts off the decimals |
All of these work the same way in Excel and Google Sheets.
ROUND, ROUNDUP and ROUNDDOWN
The second argument is the number of digits:
- 2 rounds to 2 decimal places (cents):
=ROUND(A2,2) - 0 rounds to a whole number
- -1 rounds to the nearest 10, -2 to the nearest 100, -3 to the nearest 1,000:
=ROUND(A2,-3)
ROUND sends halves away from zero, so 2.5 becomes 3 and -2.5 becomes -3. ROUNDUP always moves away from zero and ROUNDDOWN always towards it, whatever the next digit is: =ROUNDUP(3.001,0) is 4.
Round to the nearest 5, 10, 0.25 or 0.05
MROUND rounds to the nearest multiple of any number:
Nearest 5: =MROUND(A2,5)
Nearest 0.25: =MROUND(A2,0.25)
Nearest 5 cents: =MROUND(A2,0.05)
Up to the next 5: =CEILING(A2,5)
Down to a 5: =FLOOR(A2,5)
MROUND needs the number and the multiple to have the same sign: =MROUND(-17,5) returns #NUM! in Excel, so use -5 for negative values. Microsoft also notes that when the multiple is a decimal, values exactly halfway can go either way (its example: MROUND(6.05,0.1) gives 6.0 but MROUND(7.05,0.1) gives 7.1). If that matters, round with ROUND first.
In Excel, CEILING and FLOOR need the significance argument; in Google Sheets it defaults to 1. For negative numbers, CEILING.MATH and FLOOR.MATH let you choose the direction with their mode argument.
INT vs TRUNC
Both remove the decimals, but they treat negative numbers differently. INT rounds down to the next lower whole number, so =INT(-7.9) is -8. TRUNC simply cuts off the decimals, so =TRUNC(-7.9) is -7. For positive numbers they give the same result. TRUNC also takes a digits argument: =TRUNC(3.14159,2) is 3.14.
Practical recipes
Price ending in .99:
=ROUNDUP(A2,0)-0.01 (12.30 becomes 12.99)
Time to the nearest 15 minutes:
=MROUND(A2,TIME(0,15,0))
Time up to the next 15 minutes (billing):
=CEILING(A2,TIME(0,15,0))
Percentage to 1 decimal place (A2 = 0.12345):
=ROUND(A2,3) (0.123: shows 12.3% with a 1-decimal % format)
2 significant figures:
=IF(A2=0,0,ROUND(A2,2-1-INT(LOG10(ABS(A2)))))
The .99 formula turns a whole number such as 12.00 into 11.99; use =CEILING(A2+0.01,1)-0.01 if 12.00 should become 12.99. Times are fractions of a day, which is why TIME(0,15,0) works as the multiple. For the significant-figures formula, 12,345 becomes 12,000 and 0.004567 becomes 0.0046.
Formatting is not rounding
Clicking the “decrease decimal” button or setting a number format only changes what the cell shows. The full value is still used in calculations. That is why three cells showing 0.33 can add up to a total showing 1.00: each one really holds 0.3333… If displayed values and totals must match exactly, for example on an invoice, round each line with ROUND and add up the rounded results. Our running total guide and discount formulas use this approach for money.
Common mistakes
- Using ROUNDUP when you meant ROUND: ROUNDUP(2.01,0) is 3, not 2
- Forgetting that a negative digits argument rounds to the left of the decimal point
- Rounding a percentage to 0 places: 0.125 rounds to 0 (0%), not 13%. Round to 2 places for whole percentages
- Mixing signs in MROUND (gives #NUM!)
- Rounding too early in a long calculation: round the final result, unless each line must be rounded (invoices, tax)
Quick FAQ
How do I round to 2 decimal places in Excel? =ROUND(A2,2). Use ROUNDUP or ROUNDDOWN to force the direction.
How do I round to the nearest 5 in Google Sheets? =MROUND(A2,5), or CEILING(A2,5) to always round up and FLOOR(A2,5) to always round down.
How do I round to the nearest thousand? Use a negative digits argument: =ROUND(A2,-3) turns 12,345 into 12,000.
What is the difference between INT and TRUNC? They differ for negative numbers: INT(-7.9) is -8 (rounds down), TRUNC(-7.9) is -7 (drops the decimals).
Why does my total not match the rounded numbers? Formatting hides decimals but does not remove them. Round each value with ROUND before adding if the totals must match.
Sources: Microsoft Support: ROUND function; Microsoft Support: MROUND function; Microsoft Support: CEILING.MATH function; Google Docs Editors Help: ROUND; Google Docs Editors Help: MROUND.
Prefer a ready-made file?
- Excel & Google Sheets Formula Cheat Sheet (50 tested formulas + practice workbook) (US$4, Payhip): 50 formulas for lookups, SUMIFS, IF, text, dates, percentages and FILTER/UNIQUE, each shown with its result, plus an error-fix page and a practice workbook.
Related: Percentage change formula in Excel · Absolute Reference in Excel ($A$1 Explained)