INT function
Rounds a number down to the nearest integer, toward minus infinity (−7.85 becomes −8).
Available in All versions of Excel, Excel for the web, Excel for Mac
In every Excel versionWorks in Google Sheets
Syntax
INT(number)| Argument | What it means | |
|---|---|---|
number | Required | The number to round down to a whole number. |
Returns: The largest integer that is less than or equal to number.
How INT works
INT removes the decimal part of a positive number: 7.85 becomes 7. It is short, fast and found in countless sheets for whole hours, whole units, full years and, very often, for stripping the time from a date-time value, because Excel stores dates as whole numbers and times as the fraction of a day.
With negative numbers INT does not simply chop the decimals. It always rounds down, towards minus infinity, so −7.85 becomes −8. That is mathematically the "floor" of the number. If you want −7 (just cut the decimals off) use TRUNC or ROUNDDOWN. The decimal part of a positive value is =A2-INT(A2), which is the same as =MOD(A2,1).
Examples
1Whole hours from decimal hours
| A | B | C | |
|---|---|---|---|
| 1 | Item | Value | |
| 2 | Hours worked | 7.85 | 7 |
| 3 | Temperature change | -7.85 | |
| 4 | Timestamp | 2026-03-15 14:30 | |
| 5 | Overtime hours | 12.75 |
Result: 7
7.85 hours contains 7 complete hours.
2Negative numbers go down, not toward zero
| A | B | C | |
|---|---|---|---|
| 1 | Item | Value | |
| 2 | Hours worked | 7.85 | |
| 3 | Temperature change | -7.85 | -8 |
| 4 | Timestamp | 2026-03-15 14:30 | |
| 5 | Overtime hours | 12.75 |
Result: -8
−8 is the next integer below −7.85. =TRUNC(B3) would return −7.
3Date without the time
| A | B | C | |
|---|---|---|---|
| 1 | Item | Value | |
| 2 | Hours worked | 7.85 | |
| 3 | Temperature change | -7.85 | |
| 4 | Timestamp | 2026-03-15 14:30 | 2026-03-15 |
| 5 | Overtime hours | 12.75 |
Result: 2026-03-15
B4 holds a date-time (serial 46096.604…). INT keeps the day number 46096, shown with a date format as 2026-03-15, so it can be matched against a list of plain dates.
4Fraction of an hour
| A | B | C | |
|---|---|---|---|
| 1 | Item | Value | |
| 2 | Hours worked | 7.85 | |
| 3 | Temperature change | -7.85 | |
| 4 | Timestamp | 2026-03-15 14:30 | |
| 5 | Overtime hours | 12.75 | 0.75 |
Result: 0.75
Subtracting the whole part leaves 0.75 hours, i.e. 45 minutes.
Common errors and how to fix them
| Error | Why it happens | Fix |
|---|---|---|
#VALUE! | The argument is text that is not a number. | Check the source cell; dates typed as text must be converted with DATEVALUE first. |
Tips
- Age in full years:
=INT(YEARFRAC(birth, TODAY()))(or DATEDIF). - Time part of a date-time:
=MOD(B4, 1), formatted as time. - Test for a whole number:
=B2=INT(B2).
Questions
What is the difference between INT and TRUNC?
They match for positive numbers. For negatives INT rounds down (−2.3 → −3) while TRUNC removes the decimals (−2.3 → −2).
Why does INT not round 7.85 to 8?
INT never rounds up. Use =ROUND(B2,0) for nearest whole number.
Google Sheets
INT also exists in Google Sheets and works the same way for everyday use, so the examples above work there too.
INT in other languages
In a non-English version of Excel the function has a local name. Excel translates formulas automatically when a file is opened in another language.
| Language | Function name |
|---|---|
| Czech | CELÁ.ČÁST |
| Danish | HELTAL |
| Dutch | INTEGER |
| Finnish | KOKONAISLUKU |
| French | ENT |
| German | GANZZAHL |
| Norwegian (Bokmål) | HELTALL |
| Polish | ZAOKR.DO.CAŁK |
| Russian | ЦЕЛОЕ |
| Spanish | ENTERO |
| Swedish | HELTAL |
| Turkish | TAMSAYI |
Recipes that use INT
- How to calculate age in Excel
- How to calculate the number of days between two dates in Excel
- How to convert decimal hours to time in Excel
- How to get the quarter from a date in Excel
- How to sum time over 24 hours in Excel