Excel TRUNC Function

This post will guide you how to use Excel TRUNC function with syntax and examples in Microsoft excel.

Description

The Excel TRUNC function truncates a number to an integer by removing the fractional part of the number. So this function returns a truncated number based on a given number of digits in Excel.

The TRUNC function is a build-in function in Microsoft Excel and it is categorized as a Math and Trigonometry Function.

The TRUNC function is available in Excel 2016, Excel 2013, Excel 2010, Excel 2007, Excel 2003, Excel XP, Excel 2000, Excel 2011 for Mac.

Syntax

The syntax of the TRUNC function is as below:

=TRUNC (number, number_digits)

Where the TRUNC function arguments are:

  • number -This is a required argument. The number that you want to truncate.
  • number_digits – This is an optional argument. It will specify the number of decimal places to truncate the given number to. If this argument is omitted, and the TRUNC function will set number_digits argument as zero value by default.

Note:

  • If the number_digits argument is a positive value, the function will truncate the number of digits to the right of the decimal point.
  • If the number_digits argument is equal to 0, then the function will truncate the number to the nearest integer.
  • If the number_digits argument is a negative value, the function will truncate the number to the left of the decimal point.
  • The TRUNC and INT functions are very similar, they both can return the integer part of a given number. The TRUNC function will remove the fractional part of the number. And the INT function will round numbers down to the nearest integer based on the value of the fractional part of the number. With negative number, the TRUNC function and the INT function are different, as the returned result are different.

Excel TRUNC Function Examples

The below examples will show you how to use Excel TRUNC Function to truncate a given number to a specified number of decimal places in Excel.

1# to truncate a number 4.8 to return the integer part, enter the following formula in Cell B1.

=TRUNC(4.8)

excel trunc example1

2# to truncate a negative number -4.5 to return the integer part, enter the following formula in Cell B2.

=TRUNC(-4.5)

excel trunc example2

3# to truncate a number between 0 and 1 to return the integer part, enter the following formula in Cell B3.

=TRUNC(0.35)

excel trunc example3


Related Functions

  • Excel INT Function
    The Excel INT function returns the integer portion of a given number. And it will rounds a given number down to the nearest integer. The syntax of the INT function is as below:= INT (number)…
Related Posts

How to List Only Whole Numbers From Decimal Numbers in Excel
list only whole numbers5

This post will guide you how to filter only whole numbers from decimal numbers in a list in Excel. How do I filter cells with whole numbers or non-whole numbers in Excel. List Only Whole Numbers Assuming that you have ...

How to Calculate Number of Weekends between Two Dates in Excel
calculate number of weekdays3

This post will guide you how to count the number of weekends between two given dates in Excel. How to find out how many weekends are between two dates in Excel. How to count the number of Sundays between two ...

How to Check If a Number is Integer in Excel
check if number is integer1

This post will guide you how to check if a number is integer in Cells in Excel. How do I test if Cell value is integer with a formula in Excel. Check If Value is Integer Assuming that you have ...

How to Delete Numbers after Decimal Point in Excel
delete numbers after decimal point2

This post will guide you how to remove decimals without rounding in Excel. How do I delete numbers after decimal point with a formula in the given cell in Excel. Deleting Numbers after Decimal Point Assuming that you have a ...

Count the Number of Weekends between Two Date
count number of weekend between two dates2

This post will guide you how to count the number of weekends between two dates in Excel. How do I get the number of weekends between 2 dates with a formula in Excel. How to count weekend days between dates ...

Split Dates into Separate Cells in Excel
split dates into separate cells5

This post will guide you how to split date and time into separate cells in Excel. How do I Separate dates and times into two separate cells in Excel. How to split a data into multiple cells in Excel. How ...

Generate All Possible Combinations of Two Lists in Excel
generate combination list2

This post will guide you how to generate all possible combinations with a formula in excel. How do I create list with all possible combinations of two lists in Excel. How to list all combinations from two separate list or ...

Create a Five Star Rating System
create five star rating5

This post will guide you how to create a five star rating system in your current worksheet in excel. How do I change the five points system to five star rating in excel. How to use the conditional formatting function ...

Extract Date from a Date and Time
extract date vba1

This post will guide you how to extract date part from a date with time values in Excel. How do I remove time part from a date in Excel. How to get only date part from the date with time ...

Transpose Multiple Columns into One Column
transpose multiple columns6

This post will guide you how to transpose multiple columns into a single columns with multiple rows in Excel. How do I put data from multiple columns into one column with Excel formula; How to transpose columns into single column ...

Sidebar