Google Sheets function · Math
ROUND in Google Sheets: syntax and examples
ROUND changes the stored value of a number to the decimals you ask for. Without places it returns an integer, and a negative places rounds to tens, hundreds or thousands. Use it before you add up prices, so totals match the invoice.
Syntax
ROUND(value, [places])
Arguments
| Argument | Type | Required | What it does |
|---|---|---|---|
value | number | yes | The number to round. A cell, a formula or a literal. |
places | number | no | How many decimals to keep. 0 or omitted gives an integer, a negative number rounds to tens, hundreds and so on. |
Examples
The examples use this table, starting in A1:
| Value | Note |
| 2.5 | half |
| -2.5 | negative |
| 1234.5678 | long |
| 0.125 | eighth |
=ROUND(A4, 2)Result: 1234.57
Two decimals: 1234.5678 becomes 1234.57.
Run in a Google Sheet (English US locale) on .
=ROUND(A4, -2)Result: 1200
A negative places rounds to the left of the decimal point, here to hundreds.
Run in a Google Sheet (English US locale) on .
=ROUND(A2)Result: 3
Without places the result is an integer. 2.5 goes up to 3.
Run in a Google Sheet (English US locale) on .
=ROUND(A3)Result: -3
Half values round away from zero, so -2.5 becomes -3, not -2.
Run in a Google Sheet (English US locale) on .
=ROUND(A4/7, 3)Result: 176.367
Round the result of a calculation, not just a cell.
Run in a Google Sheet (English US locale) on .
Common errors
- Number formatting only hides decimals, ROUND really removes them. A column that looks rounded can still add up to a different total.
- Half values go away from zero: 2.5 becomes 3 and -2.5 becomes -3. For a different rule use ROUNDUP, ROUNDDOWN or MROUND.
- Text that is not a number, such as "abc", returns #VALUE!. Check the source column before rounding it.
- ROUND takes one or two arguments. A third one, easy to add by habit from other functions, gives an error.
Compared with Excel
ROUND works the same in Excel, including the away-from-zero rule for halves.