The INT function in Excel is designed to truncate a numeric value down to its nearest integer. This function can be particularly useful in various scenarios, such as when performing calculations that require whole numbers or when simplifying data for reporting purposes.
Syntax
INT(number)
- number: The numeric value that you want to round down to the nearest integer.
Example #1
INT(5.8)
This function call takes the value 5.8, truncates it down to the nearest integer, resulting in 5.
Example #2
INT(-3.7)
This call inputs -3.7, and since the function rounds towards negative infinity, the result is -4.
Example #3
INT(10.0)
Here, the function takes 10.0 and returns 10, as there is no fractional part to remove.
Error handling
- VALUE! This error occurs if the input is non-numeric, like text. Ensure the parameter is a valid number.
- NUM! Encountered if the number is too large or too small to be represented. Check the size of your input number.
- DIV/0! Though less common with the INT function, this may appear if calculations inadvertently attempt to divide by zero. Review all calculations leading to the input.