Tip: Other languages are Google-Translated. You can visit the English version of this link.
Log in
x
or
x
x
Register
x

or

Excel TRUNC function

The TRUNC function in Excel helps to get a truncated number based on a specific number of digits, it is used to reduce or eliminate the decimal portion of a number instead of rounding the number.


 Syntax:

The syntax for the TRUNC function in Excel is:

=TRUNC (number, [num_digits])

 Arguments:

  • number: Required. The number you want to truncate.
  • num_digits: Optional. The number of decimal places to be kept. If this argument is omitted, it recognized as 0 by default.
  • If num_digits is positive value, it will return the number of digits to the right of decimal point;
  • If num_digits is 0 or omitted, it will truncated to the integer part;
  • If num_digits is negative value, it will get the number of digits to the left of the decimal point.

 Return:

Return a truncated number based on a given precision.


 Examples:

Example 1: Trunc function to remove specific number of decimal digits from numbers

Supposing, you want to truncate the numbers based on a specific number of decimal digits, please apply the below formula:

=TRUNC(A2, B2)

And then, drag the fill handle down to the cells you want to apply this formula, you will get the result as following screenshot shown:


Example 2: Trunc function to remove time from list of datetime cells

This TRUNC function also can help to remove time from date time format, please use this formula:

=TRUNC(A2)

And then, drag the fill handle down to the cells to apply this formula, see screenshot:

At last, you should format the calculated cells as Date format as below screenshot shown:


 More articles with TRUNC function:

  • Remove Digits After Decimal In Excel
  • Sometimes you need to remove all digits after decimal to make numbers to whole numbers. You may think the Decrease Decimal feature can deal with it. Actually, the Decrease Decimal feature just changes a number’s display value, for example, show 2.5 as 3, but the actual value still is 2.5 showing in the formula bar. Therefore, how to remove digits after decimal in Excel?

Excel Productivity Tools

Ribbon of Excel (with Kutools for Excel installed)

300 Advanced Features Help You To Stand Out From Crowd

Would you like to complete your daily work quickly and perfectly? Kutools for Excel brings 300 powerful advanced features (Combine workbooks, sum by color, split cell contents, convert date, and so on...) and save 80% time.

  • Designed for 1500 work scenarios, helps you solve 80% Excel problems.
  • Reduce thousands of keyboard and mouse clicks every day, relieve your tired eyes and hands.
  • Become an Excel expert in 3 minutes. No longer need to remember any painful formulas and VBA codes.
  • 60-day unlimited free trial. 60-day money back guarantee. Free upgrade and support for 2 years.

Screen Shot of Excel (with Office Tab installed)

Brings Efficient Tabs to Office (include Excel), Just Like Chrome, Firefox, And New IE

  • Office Tab Increases your productivity by 50% when viewing and editing multiple documents.
  • Reduce hundreds of mouse clicks for you every day, say goodbye to mouse hand.
  • One second to switch between dozens of open documents!
Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.

Be the first to comment.