ROUND function

This article describes the formula syntax and usage of the ROUNDfunction in Microsoft Office Excel.

Description

The ROUND function rounds a number to a specified number of digits. For example, if cell A1 contains 23.7825, and you want to round that value to two decimal places, you can use the following formula:

=ROUND(A1, 2)

The result of this function is 23.78.

Syntax

ROUND(number, num_digits)

The ROUND function syntax has the following arguments:

  • number    Required. The number that you want to round.

  • num_digits    Required. The number of digits to which you want to round the number argument.

Remarks

  • If num_digits is greater than 0 (zero), then number is rounded to the specified number of decimal places.

  • If num_digits is 0, the number is rounded to the nearest integer.

  • If num_digits is less than 0, the number is rounded to the left of the decimal point.

  • To always round up (away from zero), use the ROUNDUP function.

  • To always round down (toward zero), use the ROUNDDOWN function.

  • To round a number to a specific multiple (for example, to round to the nearest 0.5), use the MROUND function.

Example

The example may be easier to understand if you copy it to a blank worksheet.

How do I copy an example?

  1. Select the example in this article.

    Important   Do not select the row or column headers.

    selecting an example from help

    Selecting an example from Help

  2. Press CTRL+C.

  3. In Excel, create a blank workbook or worksheet.

  4. In the worksheet, select cell A1, and press CTRL+V.

    Important   For the example to work properly, you must paste it into cell A1 of the worksheet.

  5. To switch between viewing the results and viewing the formulas that return the results, press CTRL+` (grave accent), or on the Formulas tab, in the Formula Auditing group, click the Show Formulas button.

After you copy the example to a blank worksheet, you can adapt it to suit your needs.

1


2


3


4


5

A

B

C

Formula

Description

Result

=ROUND(2.15, 1)

Rounds 2.15 to one decimal place

2.2

=ROUND(2.149, 1)

Rounds 2.149 to one decimal place

2.1

=ROUND(-1.475, 2)

Rounds -1.475 to two decimal places

-1.48

=ROUND(21.5, -1)

Rounds 21.5 to one decimal place to the left of the decimal point

20

Applies To: Excel 2007



Was this information helpful?

Yes No

How can we improve it?

255 characters remaining

To protect your privacy, please do not include contact information in your feedback. Review our privacy policy.

Thank you for your feedback!

Support resources

Change language