Skip to content

TRUNC

Cuts off the decimal part of a number, or keeps a set number of decimals, without rounding. -8.9 becomes -8.

Syntax

=TRUNC(, )

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 =TRUNC(A2) returns 8

How TRUNC works

TRUNC removes digits from a number without rounding. =TRUNC(8.9) returns 8 and =TRUNC(3.14159, 2) returns 3.14. It never looks at the digit it drops, so 8.99 is 8, not 9.

Positive and negative numbers

TRUNC moves towards zero. =TRUNC(-8.9) returns -8, because it just removes the .9. This is the difference from INT, which rounds down to the next lower integer and returns -9. For positive numbers the two give the same answer.

The optional digits argument

Without a second argument TRUNC returns a whole number. With one, it keeps that many decimals: =TRUNC(12.3456, 2) is 12.34. A negative value cuts digits left of the point and replaces them with zeros, so =TRUNC(1234.5, -2) returns 1200.

When to use TRUNC

  • Payouts and rates published to a fixed precision, where rounding would overstate: truncating 99.999 to two decimals gives 99.99.
  • The integer part of a signed value, such as a change of -7.8 that should read -7 for a whole-unit count.
  • Splitting a number into whole and fractional parts: =TRUNC(B2) and =B2-TRUNC(B2).
  • Dropping the time from a date-time: =TRUNC(A2) returns the date at midnight.

Compared with other functions

  • ROUNDDOWN returns the same result as TRUNC for any input. Its second argument is required, so TRUNC is shorter when you only want the whole number.
  • INT differs for negative numbers.
  • ROUND goes to the nearest value, not always towards zero.
  • FLOOR.MATH rounds down to a multiple.

Formatting is not truncating

Setting a cell to show two decimals rounds the display, but leaves the full value underneath. TRUNC changes the stored value, so any formula using the cell sees the truncated number. Before you truncate money, check whether the rule you are following asks for truncation or for rounding. They differ by up to one unit in the last place.

TRUNC needs numbers. Text returns #VALUE!.

Arguments

number
The number to cut off, such as B2.
num_digitsoptional
How many decimal places to keep. If you leave it out, it is 0 and TRUNC returns a whole number. A negative value cuts off digits to the left of the point: -2 keeps hundreds.

Examples

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

Example 1

Drop the decimals

B2 =TRUNC(A2)

Result: 8

TRUNC cuts the .9 off. ROUND would give 9.

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

B2 =TRUNC(A2) returns 8

Example 2

Negative numbers move towards zero

B2 =TRUNC(A2)

Result: -8

INT would return -9. TRUNC only removes the decimal part.

B2
A
B
C
1
Value
TRUNC
2
-8.9
-8
3

B2 =TRUNC(A2) returns -8

Example 3

Keep two decimals without rounding

B2 =TRUNC(A2,2)

Result: 3.14

The digits after the second decimal are dropped.

B2
A
B
C
1
Value
Truncated
2
3.14159
3.14
3

B2 =TRUNC(A2,2) returns 3.14

Example 4

Cut digits to the left of the point

B2 =TRUNC(A2,-2)

Result: 1200

A negative num_digits replaces digits left of the point with zeros.

B2
A
B
C
1
Value
Truncated
2
1234.5
1200
3

B2 =TRUNC(A2,-2) returns 1200

Example 5

Never round a payout up

B2 =TRUNC(A2,2)

Result: 99.99

ROUND would give 100.00, which pays out more than was earned. TRUNC gives 99.99.

B2
A
B
C
1
Calculated payout
Paid
2
99.999
99.990
3

B2 =TRUNC(A2,2) returns 99.99

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 payout in B2 cut off at two decimals, without rounding it up. Fill it down to C6.

Answer in C2, then it fills down to C6.

C2
A
B
C
D
E
1
Payee
Calculated payout
Paid
Change
2
Aro
12.3456
-7.8
3
Bex
99.9990
Whole units
4
Cal
5.0099
5
Dee
0.9876
6
Eli
47.5000
7

Common mistakes

  • TRUNC and INT differ for negative numbers: -8.9 gives -8 with TRUNC and -9 with INT. Pick the one that matches the rule you are following.
  • TRUNC never rounds, so 0.999 truncated to 2 places is 0.99, not 1. If you want the nearest value, use ROUND.
  • Number formats only change what is displayed. If a later formula must use the truncated figure, apply TRUNC in the formula.
  • A negative num_digits cuts digits to the left of the decimal point and pads with zeros. TRUNC(1234.5, -2) is 1200, not 1234.
  • Text such as "45 days" returns #VALUE!. Keep units out of the number cell.

Questions people ask

What does TRUNC do in Excel?

It removes digits from a number without rounding. TRUNC(8.9) is 8 and TRUNC(3.14159, 2) is 3.14.

What is the difference between TRUNC and INT?

They agree for positive numbers. For negative numbers TRUNC moves towards zero (-8.9 becomes -8) and INT goes to the next lower integer (-8.9 becomes -9).

Is TRUNC the same as ROUNDDOWN?

For any number and number of digits, yes. TRUNC makes the digits argument optional, so it is shorter for a whole number.

How do I truncate to 2 decimal places?

Use `=TRUNC(B2, 2)`. Formatting a cell to two decimals only changes the display and rounds it, while TRUNC changes the value.

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

Use `=TRUNC(A2)` and format the result as a date. The time is the fraction after the decimal point and TRUNC removes it.

Learn TRUNC in a real sheet.

Tracks take you from the basics to modelling, one graded exercise at a time.