Formula Fixer

How to Round Numbers in Excel and Google Sheets

Updated 2026-11-20

TL;DR: Use =ROUND(A2,2) to round to 2 decimal places, ROUNDUP or ROUNDDOWN to force the direction, and a negative number of digits to round to tens or thousands (=ROUND(A2,-3)). For the nearest 5, 10 or 0.25 use =MROUND(A2,5); CEILING and FLOOR round up or down to a multiple. Changing the number format only changes what you see, not the stored value.

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

FormulaResultWhat it does
=ROUND(3.14159,2)3.14Nearest, to 2 decimal places
=ROUND(2.5,0)3Halves round away from zero
=ROUND(-2.5,0)-3Also away from zero for negatives
=ROUND(1250,-2)1300Negative digits round to tens, hundreds, thousands
=ROUNDUP(3.141,2)3.15Always away from zero
=ROUNDDOWN(3.149,2)3.14Always towards zero
=MROUND(17,5)15Nearest multiple of 5
=CEILING(17,5)20Up to a multiple of 5
=FLOOR(17,5)15Down to a multiple of 5
=INT(-7.9)-8Down to the next whole number
=TRUNC(-7.9)-7Just 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:

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

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?

Related: Percentage change formula in Excel · Absolute Reference in Excel ($A$1 Explained)

Templates we sell: see all downloads and prices.

← More guides