Maths function
ROUND function in Google Sheets and Excel
ROUND rounds a number to the decimal places you choose, or to tens, hundreds or thousands with a negative count.
Checked against Microsoft's and Google's documentation on · Example calculated on a live sheet
- Excel 2016
- Excel 2019
- Excel 2021
- Excel 2024
- Microsoft 365
- Google Sheets
Syntax
ROUND(number, num_digits)Arguments in [brackets] are optional. Google Sheets writes it ROUND(value, [places]).
Example
=ROUND(D2/C2,2) reads: Divide D2 (the actual spend) by C2 (the budget) and round the result to 2 decimal places.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Category | Type | Budget | Actual | Ratio |
| 2 | Rent | Fixed | $1,200.00 | $1,200.00 | 1.00 |
| 3 | Groceries | Variable | $450.00 | $512.40 | 1.14 |
| 4 | Utilities | Fixed | $160.00 | $148.75 | 0.93 |
| 5 | Transport | Variable | $120.00 | $96.50 | 0.80 |
| 6 | Phone & internet | Fixed | $65.00 | $65.00 | 1.00 |
| 7 | Eating out | Variable | $150.00 | $203.10 | 1.35 |
| 8 | Subscriptions | Fixed | $38.00 | $44.97 | 1.18 |
| 9 | Gym | Fixed | $40.00 | $40.00 | 1.00 |
| 10 | Gifts | Variable | $60.00 | $25.00 | 0.42 |
| 11 | Savings | Fixed | $300.00 | $300.00 | 1.00 |
E2 shows 1.00: Rent cost exactly its budget. E3 shows 1.14: Groceries' 512.40 ÷ 450 is 1.13866…, rounded to 2 decimals.
How the spreadsheet calculates it
Rounds D2 divided by C2 to 2 decimal places.
- 1. ROUND: Rounds
D2divided byC2to 2 decimal places.number=`D2/C2`: the value or calculation to rounddigits=`2`: how many decimals to keep
More ROUND examples
=ROUND(A2,0)A2 to the nearest whole number.=ROUND(A2,-3)A2 to the nearest thousand.=ROUND(A2/5,0)*5A2 to the nearest multiple of 5.=ROUND(C2*1.08,2)A price plus 8% tax, to the cent.=ROUND(AVERAGE(D2:D11),2)An average rounded to two decimals.
Paste any of these into the formula explainer to see it step by step.
Tips
- Round at the end of a calculation, not in the middle, unless the rules say each step is rounded (as with tax per line).
- Use 2 for money, 0 for counts, and negative numbers for reporting in thousands.
- Keep the unrounded value in its own column when you might need the exact figure later.
- Reach for ROUNDUP or ROUNDDOWN when the direction matters more than the nearest value.
What ROUND is used for
Prices and tax to whole cents, percentages and ratios for a report, KPIs rounded to the nearest thousand for a slide, and any number that later formulas should use exactly as people see it.
Arguments
| Argument | Required | What it is |
|---|---|---|
| number | Yes | The value or calculation to round, such as D2/C2. |
| num_digits | Yes | How many decimal places to keep: 2 for cents, 0 for a whole number. Negative numbers round to the left of the decimal point: -1 to the nearest 10, -3 to the nearest 1,000.Watch out: Writing 2 when you mean the nearest hundred: that's -2. |
Common mistakes
Leaving out the digits:
ROUND(D2/C2)isn't complete.Rounding with a format and expecting the totals to add up in cents: they use the hidden decimals.
Rounding every row and then adding them up: the total of rounded values can differ by a cent or two from the rounded total. Decide which one the report needs, and say so.
Using ROUND when a value must always go up (packs to order, pages to print): that's
ROUNDUP. Always down isROUNDDOWN.
In Google Sheets
Google Sheets writes it ROUND(value, [places]): there, the number of places is optional and defaults to 0, while Excel requires num_digits. Always give the second argument and the formula works in both.
Errors you may see with ROUND
- #DIV/0!: The calculation inside divides by an empty or zero cell, such as a budget of 0 in D2/C2. ROUND passes the error on; test the divisor with IF first.
- #VALUE!: The number is text that can't be read as a number, such as a value pasted with a word in it.
- #NAME?: The function name is misspelled, such as `ROUNDD` or `RONUD`.
Questions
How do I round to the nearest 5?
Divide by 5, round to a whole number, then multiply back: =ROUND(A2/5,0)*5. The same trick works for any step, such as 0.25 or 50.
How do I round to the nearest thousand?
Use a negative num_digits: =ROUND(A2,-3) turns 1,234,567 into 1,235,000.
Does ROUND round 0.5 up?
Yes, halves are rounded away from zero: ROUND(2.5,0) is 3 and ROUND(-2.5,0) is -3.
What's the difference between ROUND and formatting a cell?
Formatting changes only what the cell shows; ROUND changes the value. A cell formatted to 2 decimals still calculates with every hidden decimal, which is why totals of formatted cells can look a cent off.
Sources
Official documentation the facts on this page were checked against.