What is the TRUNC function?
=TRUNC(number, [num_digits])TRUNC cuts off the decimal part of a number. It does not round; it just drops digits.
According to Microsoft, TRUNC and INT differ only for negative numbers: TRUNC(-4.3) is -4 and INT(-4.3) is -5. Check with -7.89 and -2.5 in the table.
TRUNC drops the decimals of amounts at a fixed place. A negative second argument cuts to the left of the decimal point: to the nearest 10, 100 or 1,000 below. Whether to cut or round fractions is a business rule, so check yours first.
Arguments
- number
- The number or cell to truncate.
- num_digits
- Optional. How many decimals to keep. The default is 0.
TRUNC examples
Example 1. Integer part
=TRUNC(8.9)8.
Example 2. Negative
=TRUNC(-8.9)-8. INT(-8.9) is -9.
Example 3. Keep two decimals
=TRUNC(3.14159, 2)3.14.
Example 4. Cutting an amount
=TRUNC(A2, -3)Results when A2 is 123,456.78. Each step down drops one more digit.
Formula Result Meaning =TRUNC(A2, 1) 123,456.7 Keep one decimal =TRUNC(A2) 123,456 Drop the cents =TRUNC(A2, -2) 123,400 Drop below 100 =TRUNC(A2, -3) 123,000 Drop below 1,000 Example 5. Tax with fractions of a cent dropped
=TRUNC(B2*0.08, 2)If your rule drops fractions of a cent, 8% of $45.67 is 3.6536, which becomes $3.65.
Common mistakes
Expecting rounding
TRUNC(8.9) is 8, not 9.
Thinking cell formatting does the same
Decrease Decimal only changes how a number looks; the value stays the same. Use a function when later calculations should use the changed value.
Per line or on the total
Cutting each line and then adding can differ by a few cents from adding first and cutting once. Decide which one your process uses.
FAQ
- How is it different from ROUNDDOWN?
- The results are the same; TRUNC just lets you omit num_digits.
- How do I get only the decimal part?
- Use =A2-TRUNC(A2).
- How do I cut upward instead?
- Use ROUNDUP. =ROUNDUP(A2, -3) rounds up to the next 1,000.