Rounding numbers in Excel is a common exercise that every Excel user does very frequently. But I’ve seen that most Excel users do not use the most appropriate functions. Most users are not even aware about the existence of multiple excel functions dedicated to rounding of numbers according to different situations and requirements.
So, in this article I provide you with 10 excel functions that you can use in different situations to make your task of rounding of numbers in Excel seem like a cake-walk. Do have a look and practice these to understand the differences between these and the situations in which each of these have to be used.
ROUND | ROUNDUP | ROUNDDOWN
ROUND function rounds a number to a specified number of digits.
The syntax of the ROUND function is =ROUND(number, number of digits). The ‘number of digits’ is the number of digits after decimal that you want to have in the result. Note that if number of digits is less than 0, the number is rounded to the left of the decimal point. Also, if number of digits is zero the number is rounded to the nearest integer.
Looking at the below mentioned examples of the usage of this function along with the results will help you understand this function better.
If you want to always round up (i.e. away from zero), use the ROUNDUP function and if you want to always round down (i.e. towards zero), use the ROUNDOWN function.
The syntax of ROUNDUP and ROUNDDOWN functions is same as that of ROUND function. These functions are similar to ROUND, except that they always round up and round down a number respectively.
|=ROUNDUP(6.26789, 3)||6.268||=ROUNDDOWN(6.76789, 3)||6.767|
|=ROUNDUP(-8.147832, 1)||-8.2||=ROUNDDOWN(-8.67832, 1)||-8.6|
|=ROUNDUP(67546.48943, -2)||67600||=ROUNDDOWN(67546.68943, -2)||67500|
TRUNC function truncates (as the name suggests) a number to an integer by removing its fractional part.
The syntax of TRUNC function is =TRUNC(number, number of digits), where ‘number of digits’ is optional. The ‘number of digits’ is the number of digits after decimal that you want to have in the result. Note that if number of digits is less than 0, the number is rounded to the left of the decimal point (similar to ROUND, ROUNDUP and ROUNDDOWN).
Looking at the below-mentioned examples of the usage of this function along with the results will help you understand this function better.
INT function rounds a number DOWN to the nearest integer.
The syntax of INT function is =INT(number or reference to the number)
So, the result for =INT(12.7) will be 12 and that for =INT(-12.7) will be -13 (Rounding a negative number down will round it away from zero).
ODD | EVEN
ODD function rounds a number UP to the nearest odd integer.
The syntax of ODD function is =ODD(number)
So, the result for =ODD(11.7) will be 13 and that for =ODD(-11.7) will be -13 (Rounding a negative number down will round it away from zero).
EVEN function functions in similar way. The only difference is that it rounds a number up to the nearest even integer.
MROUND function returns a number rounded to the nearest multiple of the specified number.
The syntax of the MROUND function is =MROUND(number, multiple)
So, =MROUND(21,4) will result in 20 (being the nearest multiple of 4 to 21). Similarly, =MROUND(-21,-4) will result in -20.
Please remember that if there are two possible results, then Excel will round the number up (and not down). So, =MROUND(21,2) will result in 22 (and not 20).
If number and multiple have different signs, the result will be #NUM!
FLOOR | CEILING
FLOOR function rounds a number towards zero to the nearest multiple of ‘significance’.
The syntax of FLOOR function is =FLOOR(number, significance), where number is the number you want to round and significance is the multiple to which you want to round.
So, =FLOOR(15.8,2) will round the number 15.8 towards zero to a multiple of 2 i.e. the result will be 14. Similarly, the result of =FLOOR(3.76,0.1) will be 3.7.
=FLOOR(-5.4,-2) will result in -4 (towards zero).
If the sign of number is negative, a value is rounded down and adjusted away from zero. So, the result of =FLOOR(-16.87,3) will be -18.
If number and significance have different signs, the result will be #NUM!
CEILING function is just the opposite of FLOOR function with the difference being that CEILING function rounds the number away from zero, to the nearest multiple of significance.
So these were 10 different excel functions to help you round numbers easily. Practice these well and understand the difference between them. Many of these can seem to be performing similar tasks. But trust me when I say that each of the above discussed functions have their own distinct usage. It is difficult for me to jot down each and every possible situation and the best function to use in that situation. So I have left that task for you to do. Reading this article and the practicing these functions will definitely make your concept clearer. And if you still have doubts, I am there to help you! 🙂
If you think this article can help your friends and colleagues, please share the articles on Facebook / Twitter / LinkedIn using the buttons above and below the article.
There are couple of more articles that I think you might find interesting. Do have a look.
I’ll see you soon with another such article.
Till then…Happy Excelling!!
GET MY EXCEL GUIDE FOR FREE
COMPLETE EXCEL FUNCTIONS AND SHORTCUTS GUIDE
Subscribe to our newsletter and get my Complete Excel Functions and Shortcuts Guide for FREE!
Thank you for subscribing.
Something went wrong.