Search form

Rounding numbers in Excel

Rounding in Excel refers to reducing the number of digits in a number to make it easier to work with. A common example is rounding a price to two decimal places. Rounding errors can cause havoc with your spreadsheets without you even realising it. A common mistake occurs when you change the display format of a number to show fewer digits after the decimal point and assume that the number has been rounded for use in other calculations. This lesson explains how rounding in Excel works, and shows you how to use the different rounding functions available in Excel.

Rounding versus Formatting in Excel

As I've already mentioned, a very common mistake people make when creating Excel spreadsheets is to assume that using the formatting options in Excel to change how numbers display also causes those numbers to be rounding. Even seasoned Excel professionals get caught out by this one, and end up scratching their head while they try to figure out why their calculations don't work out as expected. To see what I mean, check out these examples.

  • Imagine you have a spreadsheet with the following numbers which you format to only show two decimal places:
  • Note how the third and fourth numbers look different when rounded down to two decimal places. The reality is that both columns are the same - they just look different because of the formatting. Here's what happen when you multiple the numbers in each column by 100:
  • In the next example, there is no difference between the numbers in the second and fourth columns - even though the numbers in column three look different, the numbers being stored by Excel are the same. If you want Excel to see them differently, you will need to use one of the Rounding functions to round the numbers to the number of digits or decimal points you want to work with.
    Excel - the problem with formatting numbers to look like they've been rounded

The ROUND function

The simplest way to round numbers is to use the ROUND function:

=ROUND(number,num_digits)

  • The values in this function are as follows:
    • number is the number you want to round. This can be a number, a reference to a cell with a number in it, or the result of another calculation inside a cell.
    • num_digits is the number of digits the number should be rounded to.
  • You can use num_digits in several ways depending on the result you want:
    • If num_digits is greater than zero, the ROUND function will round your number to that many digits after the decimal point.
    • If num_digits is zero, the ROUND function will round your number to the nearest integer (i.e. the nearest whole number)
    • If num_digits is less than zero, the ROUND function will round the digits to the left.
  • The following example shows how ROUND can be used to round a number to two decimal points (column C in this example shows the formula used in column B):
    Excel example of the ROUND function in action
  • This example shows ROUND with a range of values for num_digits ranging from -2 to 2. Note how the negative numbers round the values to the nearest 1 (if set to 0), the nearest 10 (if set to -1), and the nearest hundred (if set to -2):
    Excel ROUND function set to round to different numbers of digits
  • You could also use the ROUND function inside another formula, as shown in this example. Note how the ROUND function is used to round the values in column A before completing the calculation, which is to multiply the rounded number by 10.
    Excel ROUND function used inside a formula

Our Comment Policy.

We welcome your comments and questions about this lesson. We don't welcome spam. Our readers get a lot of value out of the comments and answers on our lessons and spam hurts that experience. Our spam filter is pretty good at stopping bots from posting spam, and our admins are quick to delete spam that does get through. We know that bots don't read messages like this, but there are people out there who manually post spam. I repeat - we delete all spam, and if we see repeated posts from a given IP address, we'll block the IP address. So don't waste your time, or ours. One other point to note - if you post a link in your comment, it will automatically be deleted.

Add a comment to this lesson

Comments on this lesson

Thank you!!

I am learning so much from this site. Thanks for posting all these essential lessons.

Somethin not right to me

You is goin on bout this FOUND function at the end there but you is meanin ROUND right, eva sort it out man or make it like clearer you get me?

Fixed

Phillip - thanks for pointing that out. I've fixed it now.

David

Add comment