Excel ROUND Function

Related Functions:

Basic Description

The Excel Round function rounds a supplied number up or down, to a specified number of decimal places.

The syntax of the function is:

ROUND( number, num_digits )

Where the arguments are as follows:

number-The initial number.

The number of decimal places to round the supplied number to.

Note that:

  • A positive num_digits value specifies the number of digits to the right of the decimal point;
  • A num_digits value of 0 specifies rounding to the nearest integer;
  • A negative num_digits value specifies the number of digits to the left of the decimal point.

Round Function Examples

The following spreadsheets show examples of the Excel Round function:

1100.319=ROUND( A1, 1 )
25.28=ROUND( A2, 1 )
35.9999=ROUND( A3, 3 )
499.5=ROUND( A4, 0 )
5-6.3=ROUND( A5, 0 )
6-100.5=ROUND( A6, 0 )
7-22.45=ROUND( A7, 1 )
8999=ROUND( A8, -1 )
9991=ROUND( A9, -1 )

The above examples show how the Round function will round up or down, to the specified number of decimal places.

Further information on the Excel Round Function is provided on the Microsoft Office website. Also, a comparison of the Excel Rounding Functions is provided on the Excel Rounding Functions page.

Using the Round Function When Comparing Numbers in Excel:

It is often a good idea to use the Round function when comparing two numbers in Excel, especially if the numbers are the result of multiple mathematical calculations. This is because multiple calculations may result in the introduction of rounding errors, which may cause small inaccuracies in the numbers stored in Excel.

For example, the decimal 5.1 may, due to rounding errors, be stored in cell A1 of your spreadsheet, as 5.10000000000001. When compared to the exact value 5.1, the value in cell A1 will not be equal to the exact value 5.1.

However, applying the Round function to the value in cell A1 removes the rounding error.

I.e. the expression:

ROUND( A1, 1 ) = 5.1

or even the expression:

ROUND( A1, 10 ) = 5.1

will evaluate to TRUE.