formulastreak

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

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.

March household budget · edit E2 and watch it recalculate
Click a cell (or use the arrow keys) to insert its address · Enter shows the resultE2 = 1.00
ABCDE
1CategoryTypeBudgetActualRatio
2RentFixed$1,200.00$1,200.001.00
3GroceriesVariable$450.00$512.401.14
4UtilitiesFixed$160.00$148.750.93
5TransportVariable$120.00$96.500.80
6Phone & internetFixed$65.00$65.001.00
7Eating outVariable$150.00$203.101.35
8SubscriptionsFixed$38.00$44.971.18
9GymFixed$40.00$40.001.00
10GiftsVariable$60.00$25.000.42
11SavingsFixed$300.00$300.001.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. 1. ROUND: Rounds D2 divided by C2 to 2 decimal places.
    • number = `D2/C2`: the value or calculation to round
    • digits = `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

ArgumentRequiredWhat it is
numberYesThe value or calculation to round, such as D2/C2.
num_digitsYesHow 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 is ROUNDDOWN.

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.

Practise ROUND on a live sheet

Lesson 9, ROUND, and functions inside functions (Unit 2, Ranges and functions), has 5 graded exercises, checked instantly, with steps and hints when you're stuck.