# Get integer part of a number

=TRUNC(number)

To remove the decimal part of a number and return only the integer portion, you can use the TRUNC function to slice off the decimal.

In the example, cell C6 contains this formula:

=TRUNC(B6)

The TRUNC function simply truncates (i.e. removes) numbers; it doesn't not round at all.

With TRUNC, no rounding takes place. The TRUNC function simply slices off the decimal part of the number with default settings.

TRUNC actually takes an optional second argument to specify the precision of truncation, but when you don't supply this optional argument, it is assumed to be zero, and truncation happens at the decimal.

### What about INT or ROUND?

You might wonder if you can use the **INT** or ROUND **functions** instead.

The behavior of INT is identical to TRUNC (with default settings) for positive numbers — the INT function will round a number down to the next integer and then return only the integer portion of the number.

However, for negative numbers, the rounding that INT does is a bit strange.

This is because INT rounds negative numbers down away from zero, no matter what the decimal value. See the last 2 examples in the screen above for an example.

Because of this behavior, TRUNC is a better option if you just want the integer portion of a number.

As you would expect, the ROUND function rounds numbers down. If you want to round to the nearest integer, (positive or negative) just use:

=ROUND(number,0)

But be aware that the integer value may be different than the number you started with due to rounding.

## Excel Formula Training

Formulas are the key to getting things done in Excel. In this accelerated training, you'll learn how to use formulas to manipulate text, work with dates and times, lookup values with VLOOKUP and INDEX & MATCH, count and sum with criteria, dynamically rank values, and create dynamic ranges. You'll also learn how to troubleshoot, trace errors, and fix problems. Instant access. See details here.

## Download 100+ Important Excel Functions

Get over 100 Excel Functions you should know in one handy PDF.