Excel TRUNC Function: Microsoft Excel is a powerful data visualization and analysis program used all around the world. It helps to perform calculations on your PC. Sometimes, you want to truncate the given value as per your preference. We suggest you use the TRUNC function in Excel to do that.
In this article, you will learn the usage of Excel TRUNC Function in Office 365 with its syntax, description, and examples. Get an official version of MS Excel from the following link:
https://www.microsoft.com/en-in/microsoft-365/excel
Description of TRUNC Function
- It is one of the built-in functions in Excel.
- This function returns a truncated number of a given value.
- It can truncate a number by removing the fractional part of a number.
- For example, TRUNC(4.5) returns the output as 5.
Syntax
- Here, you will see the syntax of the TRUNC function.
- To apply this function on your spreadsheet, you have to select a cell and enter the formula in the following format.
- Once you enter the formula, just click on the Enter button to get the result.
=TRUNC(number, [num_digits])
Argument Explanation:
Number – The input number that needs to be truncated.
Num_digits – It is optional. The precision of the truncation. The default value of num_digits is 0. If the value is given, it will print the corresponding floating value. For example, TRUNC(9.876, 2) it will print 9.87.
Examples
Let’s see some examples to make it clear how to apply the TRUNC function in Excel.
- Initially, you have to open your Excel workbook on your PC and launch a worksheet that has data.
- For example, we have entered an input number in Cell B3, and we are going to get the truncated value for this input.
- Now, we need to enter the above-mentioned formula to get the result.
- After entering the formula, you need to click the Enter button to get the output, as shown below.
- In the following image, you will see a range of input values, and we will see the type of each value with the help of the TRUNC function.
- Once you get the first value, you can simply drag down the cell to fill the remaining values, as shown in the below image.
Closure
Thus, you can understand the usage of the Excel TRUNC Function with its syntax, description, and examples. Leave your feedback in the comment section. To learn more about Excel functions, then visit our webpage Aawexcel.com.
Video Tutorial
The following video will show you how to use the Excel TRUNC function in your spreadsheet.
See Also:
- How to Use Excel FLOOR.MATH Function?
- How to Use Excel FLOOR Function?
- How to Use Excel CEILING.PRECISE Function?
- How to Use Excel CEILING Function?
- How to Use Excel GCD Function?