Skip to content

INT

Rounds a number down to the nearest whole number. Negative numbers move to the next lower integer, so -8.9 becomes -9.

Syntax

=INT()

Math and trigonometry

All versions of Excel.

Try it

Edit the formula in B2 or change the inputs. The sheet recalculates as you type.

B2
A
B
C
1
Value
Whole part
2
8.9
8
3

B2 =INT(A2) returns 8

How INT works

INT returns the whole-number part of a number by rounding down to the next lower integer. =INT(8.9) returns 8, and =INT(8) stays 8.

Positive and negative numbers

For positive numbers INT simply drops the decimals. For negative numbers it goes further from zero: =INT(-8.9) returns -9, because -9 is the next integer below -8.9. This is the single most important thing to know about INT. If you want to drop the decimals without changing the direction, use TRUNC, which returns -8.

Typical uses

  • Whole units from a total: =INT(B2/12) returns the complete years in B2 months. Pair it with MOD for the leftover: =MOD(B2, 12).
  • The decimal part: =B2-INT(B2) returns what is after the point, 0.75 for 12.75. For negative numbers this returns the positive remainder.
  • Stripping the time from a date-time: a date with a time is a number with a fraction, so =INT(A2) returns the date at midnight. Format the cell as a date.
  • Whole-number checks: =B2=INT(B2) is TRUE when B2 has no decimal part.
  • Random whole numbers: =INT(RAND()*6)+1 simulates a die.

INT compared with other functions

  • ROUNDDOWN goes towards zero, and has a digits argument. For positive numbers it matches INT; for negative ones it doesn't.
  • TRUNC also goes towards zero and keeps any number of decimals if you ask.
  • QUOTIENT divides and returns the whole part, truncated towards zero, in one step.
  • FLOOR.MATH with no significance gives exactly the same as INT, and can also round down to a multiple.
  • ROUND goes to the nearest whole number, not always down.

Where INT surprises people

INT is exact about its input. A calculation on decimals that should give a whole number can fall a hair short of it, and INT then returns the integer below. If =INT(B2*100) comes out one lower than you expect, wrap the calculation in ROUND first: =INT(ROUND(B2*100, 0)). Also, INT only accepts numbers: a text value such as "n/a" returns #VALUE!.

Arguments

number
The number to round down to a whole number, such as B2 or B2/12.

Examples

Each example is a live sheet. Change the inputs or the formula and watch the result.

Example 1

Drop the decimals

B2 =INT(A2)

Result: 8

INT goes down to the next lower integer. ROUND would give 9.

B2
A
B
C
1
Value
Whole part
2
8.9
8
3

B2 =INT(A2) returns 8

Example 2

Negative numbers go down, not towards zero

B2 =INT(A2)

Result: -9

-9 is below -8.9. TRUNC and ROUNDDOWN would return -8.

B2
A
B
C
1
Value
INT
2
-8.9
-9
3

B2 =INT(A2) returns -9

Example 3

Get the decimal part of a number

B2 =A2-INT(A2)

Result: 0.75

Taking the whole part away leaves what follows the decimal point.

B2
A
B
C
1
Value
Decimal part
2
12.75
0.75
3

B2 =A2-INT(A2) returns 0.75

Example 4

Remove the time from a date-time

B2 =INT(A2)

Result: 12-Feb-2025

A date-time is a serial number plus a fraction of a day. INT keeps the date at 45,700 and drops the 0.75 (6 pm).

B2
A
B
C
1
Timestamp
Date only
2
12-Feb-2025 18:00
12-Feb-2025
3

B2 =INT(A2) returns 12-Feb-2025

Example 5

Whole years of service from months

B2 =INT(A2/12)

Result: 6

77 months is 6.42 years. INT keeps the 6 complete years.

B2
A
B
C
1
Months
Full years
2
77
6
3

B2 =INT(A2/12) returns 6

Your turn.

Solve it in the sheet. Every answer is checked, with hints if you need them.

Task 1 of 2

In C2, return the number of complete years in the months in B2. Fill it down to C6.

Answer in C2, then it fills down to C6.

C2
A
B
C
D
E
1
Name
Months of service
Full years
Extra months
2
Aro
77
3
Bex
14
4
Cal
130
5
Dee
5
6
Eli
36
7
8

Common mistakes

  • INT moves negative numbers down, so -8.9 becomes -9. If you expected -8, use TRUNC or ROUNDDOWN.
  • INT always rounds down, never to the nearest. INT(8.9) is 8. If you wanted 9, use ROUND.
  • A calculation on decimals can come out a hair below the whole number you expect, and INT then returns the integer below. Wrap the calculation in ROUND before INT when you need an exact count.
  • INT on a date-time removes the time, but the cell shows a serial number until you format it as a date.
  • Text such as "12 units" returns #VALUE!. Keep units out of the number cell.

Questions people ask

What does INT do in Excel?

It rounds a number down to the nearest whole number. INT(8.9) is 8, and INT(-8.9) is -9.

What is the difference between INT and TRUNC?

They agree for positive numbers. For negative numbers INT goes to the next lower integer (-8.9 becomes -9), and TRUNC just removes the decimals (-8.9 becomes -8).

How do I get just the decimal part of a number?

Subtract the whole part: `=B2-INT(B2)`. For 12.75 this returns 0.75. For negative numbers it returns the positive remainder, since INT rounds down.

How do I remove the time from a date and time?

Use `=INT(A2)` and format the result as a date. The time is stored as the fraction of the day, and INT removes it.

Is INT the same as ROUNDDOWN?

Only for positive numbers. ROUNDDOWN moves towards zero and has a digits argument. INT always moves to the lower integer and has no digits argument.

Learn INT in a real sheet.

INT is taught in Excel foundations, lesson 14: ROUNDUP, ROUNDDOWN and INT. Each lesson is a short, graded exercise like the one above.