tech on the net
Home About Us Feedback Site Map


Access Excel Word


SQL Oracle / PLSQL SQL Server MySQL MariaDB PostgreSQL

Web Development

HTML CSS Color Picker


C Language


ASCII Table Linux UNIX Java Clipart Joke of the Moment

Excel Functions

(Scroll to see more)

Share this page:

MS Excel: TRUNC Function (WS)

Learn how to use the Excel TRUNC function with syntax and examples.


The Microsoft Excel TRUNC function returns a number truncated to a specified number of digits.


The syntax for the Microsoft Excel TRUNC function is:

TRUNC( number, [digits] )

Parameters or Arguments

number is the number to truncate.

digits is optional. It is the number of decimal places to display in the resulting truncated number. If this parameter is omitted, the TRUNC function will assume 0.

Applies To

The TRUNC function can be used in the following versions of Microsoft Excel:

  • Excel 2013, Excel 2011 for Mac, Excel 2010, Excel 2007, Excel 2003, Excel XP, Excel 2000

Type of Excel Function

The TRUNC function can be used in Microsoft Excel as the following type of function:

  • Worksheet function (WS)

Example (as Worksheet Function)

Let's look at some Excel TRUNC function examples and explore how to use the TRUNC function as a worksheet function in Microsoft Excel:

Microsoft Excel

Based on the spreadsheet above, the following Excel TRUNC examples would return:

=TRUNC(A1) would return 662
=TRUNC(A1, 0) would return 662
=TRUNC(A1, 1) would return 662.7
=TRUNC(A2, -1) would return 50
=TRUNC(67.891) would return 67
=TRUNC(-23.67, 1) would return -23.6