Excel function

ROUNDfunction

Rounds a number to a given number of digits.

All versions
=ROUND(A2, 2)
A
B
1
2
3
4
5
6
7

Click a cell in the table to change number. Try num_digits 0, -1 and -2. Also check what happens to 2.5 and -2.5. Try breaking it on purpose to see the errors.

Result

3.14

number
A2You can also click a cell in the table

The number to round. Click a value in column A.

num_digits

Positive: decimal places. 0: whole number. Negative: tens, hundreds and so on.

What is the ROUND function?

=ROUND(number, num_digits)

ROUND rounds a number to the number of digits you choose. Digits of 5 or more round up, below 5 round down, and halves are rounded away from zero, so 2.5 becomes 3 and -2.5 becomes -3.

Unlike cell formatting, which only changes how a number looks, ROUND changes the value itself, so later calculations use the rounded number.

Arguments

number
The number to round.
num_digits
2 rounds to two decimal places, 0 to a whole number, -1 to the nearest ten, -2 to the nearest hundred.

ROUND examples

  1. Example 1. Two decimal places

    =ROUND(3.14159, 2)

    The result is 3.14.

  2. Example 2. Nearest hundred

    =ROUND(1234.567, -2)

    The result is 1200.

  3. Example 3. Halves round away from zero

    =ROUND(-2.5, 0)

    The result is -3, not -2.

Common mistakes

FAQ

Does ROUND use banker's rounding?
No. Excel's ROUND rounds halves away from zero.