The Excel Int function truncates a supplied number down to the closest integer.
The syntax of the function is:
Where the number argument is any numeric value.
Note that the Int function always rounds down. If you want to round to the nearest integer (up or down), you need to use the Round Function or the Mround Function.
The following spreadsheets show the Excel Int function applied to different numbers:
Formulas:
|
Results:
|
The above examples show how the Int function always rounds down. Even with negative numbers, the function rounds down (away from zero).
If you require different rounding rules, check out our comparison of Excel Rounding Functions.
See the Microsoft Office website for further information on the Excel Int Function.