Keep the whole number with INT

Rounding · About 4 minutes

Keep the whole number with INT

INT keeps the whole-number part and drops everything after the point. =INT(B2/12) reads as "divide by 12 and keep the whole number", so 2.5 years becomes 2.

Exercise 1 of 3 · Worked example

In C2, work out Lakshmi's full years of service from her months (B2). Type =INT(B2/12).

ABC
1EmployeeMonthsFull years
2Lakshmi30 (answer cell)
3Joseph47
4Harpreet12
5Sameer8
6Divya65

Questions people ask

What does the INT function do in Excel?

It drops the decimals and keeps the whole number below: =INT(7.8) gives 7.

What is the difference between INT and ROUNDDOWN?

They agree on positive numbers. On negatives, INT goes to the lower number, so INT(-2.5) is -3, while ROUNDDOWN(-2.5,0) is -2.

How do I remove decimals without rounding?

Use INT for positive numbers, or TRUNC to cut the decimals off any number.

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

Subtract the whole number: =B2-INT(B2). For 12.75, that gives 0.75.

Theme