Math & trig function

TRUNC function

Cuts a number to a given number of decimal places without rounding; the default removes all decimals.

Available in All versions of Excel, Excel for the web, Excel for Mac

In every Excel versionWorks in Google Sheets

Syntax

TRUNC(number, [num_digits])
ArgumentWhat it means
numberRequiredThe number to cut.
num_digitsOptionalDigits to keep after the decimal point. Default 0. Negative values cut to tens, hundreds…

Returns: The number with the extra digits removed (towards zero).

How TRUNC works

TRUNC (truncate) chops digits off a number. Nothing is rounded: 7.6 becomes 7 and 1.083947 cut to 4 decimals becomes 1.0839. Use it when the rule is "only completed units count", or when a system you feed expects a fixed number of decimals without rounding.

TRUNC and ROUNDDOWN are the same calculation; the only difference is that the digits argument is optional in TRUNC. Compared with INT, TRUNC goes toward zero for negative numbers: TRUNC(−8.79) is −8 while INT(−8.79) is −9. For a stock movement or a balance that can be negative, TRUNC treats both directions alike.

Examples

1Full hours and leftover minutes

C2fx=TRUNC(B2)&" h "&ROUND((B2-TRUNC(B2))*60, 0)&" min"
ABC
1DescriptionValue
2Shift length (h)7.67 h 36 min
3Stock change-8.79
4Exchange rate1.083947

Result: 7 h 36 min

TRUNC keeps 7 full hours; the remaining 0.6 hours × 60 = 36 minutes.

2TRUNC versus INT on a negative value

C3fx=TRUNC(B3)
ABC
1DescriptionValue
2Shift length (h)7.6
3Stock change-8.79-8
4Exchange rate1.083947

Result: -8

The decimals are removed, giving −8. =INT(B3) would return −9.

3Keep four decimals of an exchange rate

C4fx=TRUNC(B4, 4)
ABC
1DescriptionValue
2Shift length (h)7.6
3Stock change-8.79
4Exchange rate1.0839471.0839

Result: 1.0839

The 5th and later decimals are dropped; ROUND would have given 1.0839 as well here, but 1.08396 would truncate to 1.0839 and round to 1.0840.

⬇Practice workbookExamples with live formulas + practice sheets · .xlsx · 15 KB

Common errors and how to fix them

ErrorWhy it happensFix
#VALUE!Non-numeric argument.Check the inputs.

Tips

  • =TRUNC(x, -2) cuts to hundreds: 1,987 → 1,900.
  • To see a value with fewer decimals without changing it, use a number format instead.

Questions

TRUNC or ROUNDDOWN?

They give identical results. TRUNC is shorter when you want whole numbers because num_digits is optional.

TRUNC or INT?

Same for positive numbers. For negatives TRUNC goes toward zero and INT goes down.

Google Sheets

TRUNC also exists in Google Sheets and works the same way for everyday use, so the examples above work there too.

TRUNC 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.

LanguageFunction name
CzechUSEKNOUT
DanishAFKORT
DutchGEHEEL
FinnishKATKAISE
FrenchTRONQUE
GermanKÜRZEN
HungarianCSONK
ItalianTRONCA
Norwegian (Bokmål)AVKORT
PolishLICZBA.CAŁK
Portuguese (Brazil)TRUNCAR
Portuguese (Portugal)TRUNCAR
RussianОТБР
SpanishTRUNCAR
SwedishAVKORTA
TurkishNSAT