Skip to content
Free Excel Tutorials
  • Home
  • Excel For Beginners
  • Excel Intermediate
  • Advanced Excel For Experts

Data Analysis

  • How to Create Gantt Chart in Excel
  • How to create running total in an Excel Table
  • Conditional Formatting Color Scales Examples in Excel
  • How To Filter Data in Excel
  • How to calculate correlation coefficient Correlation in Excel

References

  • Find Closest Match in Excel Using INDEX, MATCH, ABS and MIN functions
  • Count unique text values with criteria
  • How to get address of last cell in range in Excel
  • CHOOSE function: Description, Usage, Syntax, Examples and Explanation
  • INDEX function: Description, Usage, Syntax, Examples and Explanation

Data Validations

  • Excel Data validation require unique number
  • Excel Data validation exists in list
  • Excel Data validation with conditional list
  • Prevent invalid data entering in specific cells
  • Excel Data validation must not contain

Excel Get integer part of a number Example

by

This tutorials shows how to Get integer part of a number  in Excel.

To remove the decimal part of a number and return only the integer portion, you can use the TRUNC function to slice off the decimal.

Formula

=TRUNC(number)

Explanation

In the example, cell C6 contains this formula:

=TRUNC(B6)

The TRUNC function simply truncates (i.e. removes) numbers; it doesn’t not round at all.

How this formula works

With TRUNC, no rounding takes place. The TRUNC function simply slices off the decimal part of the number with default settings.

TRUNC actually takes an optional second argument to specify the precision of truncation, but when you don’t supply this optional argument, it is assumed to be zero, and truncation happens at the decimal.

What about INT or ROUND?

You might wonder if you can use the INT or ROUND functions instead.

The behavior of INT is identical to TRUNC (with default settings) for positive numbers — the INT function will round a number down to the next integer and then return only the integer portion of the number.

However, for negative numbers, the rounding that INT does is a bit strange.

This is because INT rounds negative numbers down away from zero, no matter what the decimal value. See the last 2 examples in the screen above for an example.

Because of this behavior, TRUNC is a better option if you just want the integer portion of a number.

As you would expect, the ROUND function rounds numbers down. If you want to round to the nearest integer, (positive or negative) just use:

=ROUND(number,0)

But be aware that the integer value may be different than the number you started with due to rounding.

Post navigation

Previous Post:

DECIMAL function: Description, Usage, Syntax, Examples and Explanation

Next Post:

AVERAGE function: Description, Usage, Syntax, Examples and Explanation

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Learn Basic Excel

Ribbon
Workbook
Worksheets
Format Cells
Find & Select
Sort & Filter
Templates
Print
Share
Protect
Keyboard Shortcuts

Categories

  • Charts
  • Data Analysis
  • Data Validation
  • Excel Functions
    • Cube Functions
    • Database Functions
    • Date and Time Functions
    • Engineering Functions
    • Financial Functions
    • Information Functions
    • Logical Functions
    • Lookup and Reference Functions
    • Math and Trig Functions
    • Statistical Functions
    • Text Functions
    • Web Functions
  • Excel VBA
  • Excel Video Tutorials
  • Formatting
  • Grouping
  • Others

Logical Functions

  • FALSE function: Description, Usage, Syntax, Examples and Explanation
  • XOR function: Description, Usage, Syntax, Examples and Explanation
  • IFNA function: Description, Usage, Syntax, Examples and Explanation
  • IF, AND, OR and NOT Functions Examples in Excel
  • Complete List of Excel Logical Functions, References and Examples

Date Time

  • DAYS function: Description, Usage, Syntax, Examples and Explanation
  • Get days between dates in Excel
  • Next biweekly payday from date in Excel
  • Convert decimal hours to Excel time
  • How to join date and text together in Excel

Grouping

  • Group times into unequal buckets in Excel
  • Map inputs to arbitrary values in Excel
  • Categorize text with keywords in Excel
  • How to randomly assign people to groups in Excel
  • Map text to numbers in Excel

General

  • How to count total columns in range in Excel
  • Using Existing Templates in Excel
  • Freeze and Unfreeze Panes in Excel
  • Hide and Unhide Columns or Rows in Excel
  • Find, Select, Replace and Go To Special in Excel
© 2026 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning