Download the example workbook
In this Article
This tutorial will demonstrate how to calculate the integer portion of a number in Excel and Google Sheets.
Integer Portion of Number
To calculate the integer portion of a number, use the TRUNC Function to “truncate” off the decimal.
The TRUNC Function simply cuts off the decimal, it does not round.
INT and ROUND Functions
You might be wondering about the INT or ROUND Functions.
The INT Function will work exactly the same as TRUNC for positive numbers, but for negative numbers INT rounds numbers down away from zero.
The ROUND Function rounds number, which can give different answers than the other functions.
Calculate Integer Part of a Number in Google Sheets
All of the above examples work exactly the same in Google Sheets as in Excel.