ExcelCSE.com

Menu
  • Excel 101
  • Excel Functions
  • Excel Formula
  • Contact Us
How to Use Excel > Excel Functions > Excel TRUNC Function

Excel TRUNC Function

How to Use the Excel TRUNC Function
Table of contents :
  • What is the Excel TRUNC Function?
  • TRUNC Syntax
  • How to Use TRUNC Function in Excel
  • TRUNC Example

Excel TRUNC Function

What is the Excel TRUNC Function?

Excel TRUNC function truncates a number by removing the fractional part of the number based on a number_digits argument.

TRUNC Syntax

TRUNC(number, [num_digits])

number, required, the number to be truncated.

num_digits, optional, a number specifying the precision of the truncation. The default value is 0 (zero).

Usage notes:

  • Use the TRUNC function to cut a set number of decimal places without rounding.
  • The TRUNC function without the num_digits argument is like the INT function for positive numbers, both returns integer number from a number. For negative numbers, both return a different number. The TRUNC function does not round, only cuts numbers based on the num_digit argument, while the INT function does To get an integer number from a number, whether positive or negative, use the TRUNC function without the num_digits argument.

How to Use TRUNC Function in Excel

Next is the TRUNC function which is used to cut the number 123.456 with positive or negative signs. What are the results when using different num_digits arguments?

TRUNC Function in Excel

TRUNC Function #1

=TRUNC(123.456)

The TRUNC function without the num_digits argument, by default Excel uses the number 0. As a result, Excel cuts all the numbers behind the decimal separator, leaving only the integer numbers.

The result is 123.

TRUNC Function #2

=TRUNC(123.456,2)

TRUNC function with num_digits argument 2. Excel cuts numbers behind the decimal separator and leaves two-digit numbers.

The result is 123.45

TRUNC Function #3

=TRUNC(123.456,4)

If the number of digits behind the decimal separator is smaller than the num_digits argument, Excel does not cut any numbers.

The result is the same as the original number 123.456.

TRUNC Function #4

=TRUNC(123.456,-2)

If the argument num_digits is negative, excel cuts all the numbers behind the decimal separator and changes the number in front of the decimal separator to 0. The number of numbers changed depends on the num_digits argument.

The result is 100.

TRUNC Function #5

=TRUNC(-123.456)

The TRUNC function with the negative number argument and without the num_digits argument. The result remains the same negative number without numbers behind the decimal separator.

The result is -123.

TRUNC Function #6

=TRUNC(-123.456,2)

The TRUNC function with a negative number argument and positive num_digit argument. The result is -123.45

TRUNC Function #7

=TRUNC(-123.456,-2)

The TRUNC function with a negative number argument and num_digit argument.

The result is a negative integer number with two-digit numbers in front of the decimal separator changing to zero. The result is -100.

Please see the results of all the excel TRUNC functions above in the picture below.

How to Use TRUNC in Excel

TRUNC Example

Another article using or explain about TRUNC Function
  • Excel TRUNC Function

Another Round Function

Another article about Round Function
  • Excel TRUNC Function
  • Excel INT Function
Share
Tweet
Google+
Email
Prev Article
Next Article

Related Articles

Excel DAY Function
What is the Excel DAY Function? The DAY function returns …

Excel DAY Function

Excel MATCH Function
What is the Excel MATCH Function? Excel MATCH function returns …

Excel MATCH Function

Excel SUBSTITUTE Function
What is the Excel SUBSTITUTE Function? The excel SUBSTITUTE function …

Excel SUBSTITUTE Function

Excel CHOOSE Function
What is the Excel CHOOSE Function? The excel CHOOSE function …

Excel CHOOSE Function

Excel IFERROR Function
What is the Excel IFERROR Function? The Excel IFERROR function …

Excel IFERROR Function

Tags:How To Use TRUNC in Excel Round Function TRUNC Function TRUNC Function in Excel What is TRUNC

Categories

  • Excel 101
  • Excel Formula
  • Excel Functions

Recent Posts

  • Get the Original Price from Percentage Increase/Decrease
  • How to Add/Subtract Percentage in Excel
  • How to Extract Day, Month and Year from Date in Excel
  • How to Add Seconds, Minutes and Hours to a Time in Excel
  • How to Add Days, Weeks, Months and Years to a Date in Excel
  • How to Calculate Time Difference in Excel
  • Calculate Number of Days, Weeks, Months and Years Between Two Dates in Excel
  • Flash Fill Excel
  • Paste Special Excel
  • Excel TEXTJOIN Function
  • Excel CONCAT Function
  • Excel CONCATENATE Function
  • Excel REPLACE Function
  • Excel SUBSTITUTE Function
  • Excel REPT Function
  • Excel FIND Function
  • Excel SEARCH Function
  • Excel MID Function
  • Excel RIGHT Function
  • Excel LEFT Function

ExcelCSE.com

The Ultimate Guide How to Use Excel Better
Copyright © 2024 ExcelCSE.com
Contact Us - Privacy Policy - Sitemap | Theme by MyThemeShop.com

Ad Blocker Detected

Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker.

Refresh