How to Get Integer Part Of A Number in Excel

Learn multiple Excel methods to get integer part of a number with step-by-step examples and practical applications.

excelformulaspreadsheettutorial
10 min read • Last updated: 7/2/2025

How to Get Integer Part Of A Number in Excel

Why This Task Matters in Excel

Numbers that contain decimals are everywhere: prices with cents, engineering readings recorded to three decimal places, percentages that rarely land on a whole number, and metrics such as average order value calculated to two decimals. Yet in day-to-day decision-making we often need just the whole-number portion—the integer.

Imagine a retailer calculating how many full cartons can be shipped when each carton holds ten units. If the calculated demand is 438.7 units, the warehouse team needs to see 438 full cartons, not 439 or 438.7. Likewise in finance, when you pay down a mortgage you may want to show full years remaining without rounding up the fraction of a year. Manufacturing planners convert machine cycle times expressed in seconds into full minutes to decide shift staffing.

Across industries—finance, logistics, manufacturing, education, science—stripping off decimals serves practical ends: allocating resources, grouping data, summarising reports, and ensuring compliance with rules that deal only in whole units (for example, tax regulations that ignore fractions of a euro).

Excel comes with several built-in functions—INT, TRUNC, QUOTIENT, and ROUNDDOWN—that can extract the integer part in different ways. Choosing the correct method keeps calculations accurate and repeatable. Not knowing the difference between these approaches can introduce subtle errors: over-ordering stock, taxing the wrong amount, or misclassifying age groups. Mastering this seemingly small skill connects directly to other crucial workflows such as rounding, floor and ceiling operations, percentage calculations, and data validation rules that rely on integers.

Best Excel Approach

For most tasks the INT function is the fastest, most readable way to return the integer part of a positive number:

=INT(number)

INT simply chops away everything to the right of the decimal point for positive values. However, for negative numbers INT returns the integer at or below the value. For example INT(-3.2) delivers -4, not -3.

When you need the integer part without moving to the next lower integer for negatives, use TRUNC:

=TRUNC(number, [num_digits])

Supplying [num_digits] as 0 (or omitting it) removes all decimals without shifting negative values downward.

Key points:

  • Use INT when the dataset is exclusively positive or when rounding toward negative infinity is desired.
  • Use TRUNC when you require symmetry around zero and want ‑2.8 to become ‑2, not ‑3.
  • Both functions have no impact on true integers; INT(15) = 15.
    Prerequisites are minimal: data must be numeric, formatted as numbers or percentages. The underlying logic exploits the way Excel stores numbers as floating-point values and disregards the fractional component.

Parameters and Inputs

number (required) — Any real number, reference, or expression that evaluates to a number. It may be a cell reference (A2), a constant (3.1416), or a calculated value such as B2/C2.
[num_digits] (optional, TRUNC only) — How many decimal places to keep. Zero or omitted means keep none. Positive values keep that many decimals; negative values chop digits to the left of the decimal, behaving like a “round down to tens, hundreds” feature.

Data preparation:

  • Ensure the cell truly contains a number, not text (“12.3” stored as text will cause #VALUE!).
  • Remove non-printable characters when numbers come from imports.
  • If a cell can be blank, wrap the formula in IF or IFERROR to avoid cluttering results.

Edge cases:

  • INT and TRUNC ignore formatting; 5% formatted as percentage is 0.05 internally, so INT(0.05) returns 0.
  • Very large floating-point numbers may show rounding artifacts; consider using ROUND before INT/TRUNC if absolute precision is needed.

Step-by-Step Examples

Example 1: Basic Scenario

Imagine a small café tracking daily snack sales in kilograms. The point-of-sale system exports quantities with three decimals because it stores individual biscuit weights. The owner wants to know how many full kilograms of each snack were sold.

Sample data placed in [A2:A6]: [4.932]
[3.101]
[7.899]
[2.045]
[5.500]

Step-by-step:

  1. In B1 label the column “Full kg”.
  2. In B2 insert:
=INT(A2)
  1. Copy the formula down to B6. Excel immediately shows: 4, 3, 7, 2, 5.
  2. Format column B as Number with zero decimals for clarity.

Why it works: INT removes the fractional parts (.932, .101 …) leaving only the integer. The café owner now sees whole-kilogram totals, useful for ordering packaging supplies sold in 1 kg rolls.

Troubleshooting: if a cell shows ##### widen the column. If any value displays as 0 when the original looked like “.650”, remember that 0.650 removes to 0, which is correct. Wrap the formula in IF(A\2=\"\",\"\",INT(A2)) to manage blanks.

Example 2: Real-World Application

A distribution centre needs to load pallets where each pallet holds 42 boxes. A shipment table lists total boxes per customer order, some generated by a planning tool that returns decimals due to mixed carton sizes. Shipping staff require full pallets count.

Data layout:
Column A “Order ID” (ORD001…ORD010)
Column B “Total Boxes Needed” (e.g., 378.4, 91.7, 204.0)

Process:

  1. Insert column C named “Full Pallets”.
  2. In C2 enter:
=QUOTIENT(B2,42)

QUOTIENT returns the integer portion of B2 divided by 42, ideal for unit grouping.
3. Drag down. A row where B2 is 378.4 yields 9 full pallets.

Why use QUOTIENT instead of INT(B2/42)? Performance for thousands of rows is almost identical, but QUOTIENT communicates intention clearly to colleagues: “I care about full‐unit division”.

Handling overflows: create column D “Remaining Boxes” with

=B2-(C2*42)

Staff instantly see extra boxes that must go on the last partially loaded pallet.

Integration: Add conditional formatting to highlight C2 higher than warehouse capacity (for example, red fill when C2 greater than 20). This shows how extracting integers feeds into downstream workflow decisions: staffing forklifts, sequencing trucks, and generating bill of lading documents.

Example 3: Advanced Technique

A telecom company bills roaming charges per minute but logs call durations in seconds with three decimals. Calls under 30 seconds are free, otherwise each full minute is billed, ignoring partial minutes.

Challenge: For negatives representing credits, decimals must be truncated toward zero. INT falls apart here because INT(-75.2/60) yields ‑2 (two full minutes) while the policy requires ‑1 (credit for one minute).

Data: Column A “Call Seconds” can hold values like 125.8 or ‑75.2.
Solution formula in B2 “Billable Minutes”:

=IF(ABS(A2)<30,0,TRUNC(A2/60))

Walkthrough:

  1. ABS(A2)<30 filters out free calls.
  2. A2/60 converts seconds to minutes.
  3. TRUNC with no [num_digits] keeps integer part symmetrically round zero. If A2 is ‑75.2, A2/60 yields ‑1.253333 …, TRUNC delivers ‑1, which matches business logic.

Performance optimisation: for millions of call records stored in Power Query or Data Model, replacing TRUNC with INT plus an IF(A2 greater than 0) wrapper slightly improves speed. Yet TRUNC remains clearer and reduces audit risk.

Edge cases handled:

  • 29.999 seconds returns 0.
  • ‑29 seconds returns 0 credit, as intended.
  • Null records can be intercepted with IFERROR.

Professional tip: Document the policy in a comment or separate metadata sheet so future analysts understand why TRUNC was chosen over INT.

Tips and Best Practices

  1. Label formulas clearly — Use helper columns named “Integer” or “Whole Units” so others grasp purpose instantly.
  2. Choose INT versus TRUNC intentionally — Make negative number behaviour explicit; add a note if the dataset never contains negatives.
  3. Combine with ROUND for floating-point quirks — ROUND(A2,10) before INT ensures 1.999999999 returns 1, not 0, when numbers come from binary conversions.
  4. Avoid volatile wrappers — Functions like NOW or RAND recalculate constantly; keep integer extraction separate to minimise sheet refresh times.
  5. Use QUOTIENT for grouping — When converting units (boxes-per-pallet, seconds-per-minute) QUOTIENT enhances readability and handles integer division in one step.
  6. Apply data validation — Restrict inputs to numbers only to reduce #VALUE! errors, using Data Validation > Whole Number or Decimal.

Common Mistakes to Avoid

  1. Applying INT to negative amounts without checking — INT(-2.3) becomes -3, not -2, leading to over-deductions or negative inventory counts. Test with negative samples before rolling out.
  2. Assuming formatting equals underlying value — A cell that looks like “12” might actually hold 11.9999999; always inspect the formula bar or apply increased decimal places for QA.
  3. Using TEXT functions on numeric cells — Extracting integers via LEFT before the decimal converts numbers to text, breaking math later. Stick to numeric functions.
  4. Not accounting for empty cells — INT(“”) throws #VALUE!. Wrap formulas: IF(A\2=\"\",\"\",INT(A2)).
  5. Hard-coding divisors — Entering 42 directly in formulas is fine but document it or reference a named cell so changes propagate automatically.

Alternative Methods

MethodFormula ExampleNegative-Number BehaviourPerformanceBest Use Case
INT`=INT(`A2)Rounds toward negative infinityFastPositive datasets, floor operations
TRUNC`=TRUNC(`A2)Truncates toward zeroFastMixed-sign datasets, symmetry around zero
QUOTIENT`=QUOTIENT(`A2,Unit)Same as INT(A2/Unit)FastUnit conversion, grouping
ROUNDDOWN`=ROUNDDOWN(`A2,0)Same as TRUNCSlightly slowerWhen you already use ROUND family
FIXED then VALUE`=VALUE(`FIXED(A2,0,TRUE))Like INTSlow, volatileFormatting output for text reports

INT is computationally minimal but unsuitable if you need ‑2.3 to become ‑2. TRUNC solves that but is marginally less recognisable to casual users. QUOTIENT is perfect for integer division and communicates intent. ROUNDDOWN works but adds unnecessary overhead when num_digits is zero. FIXED converts to text first, so only use when you must display integers as formatted strings.

FAQ

When should I use this approach?

Use integer extraction whenever fractions are irrelevant to the decision—inventory counts, palletisation, whole years of tenure, or billing increments that ignore residuals.

Can this work across multiple sheets?

Yes. Reference a cell on another sheet normally: `=INT(`Sheet2!B5). For bulk operations, build the formula once, copy, or use an Excel Table whose structured references maintain sheet names.

What are the limitations?

INT and TRUNC rely on floating-point representation. Extremely large numbers (above 15 digits) may display rounding anomalies. They also fail on non-numeric strings, returning #VALUE!.

How do I handle errors?

Combine with IFERROR: `=IFERROR(`TRUNC(A2),\"Check input\"). Alternatively, test with ISNUMBER before applying the function: `=IF(`ISNUMBER(A2),TRUNC(A2),\"\")

Does this work in older Excel versions?

INT and TRUNC exist in every version back to Excel 95. QUOTIENT arrived in Excel 2000. ROUNDDOWN is equally old. Therefore you can confidently deploy these formulas even in legacy environments.

What about performance with large datasets?

On 100,000 rows INT, TRUNC, and QUOTIENT recalculate in under 25 milliseconds on modern hardware. Avoid array-entered INT formulas over large ranges in volatile workbooks; consider converting formulas to values once data stabilises.

Conclusion

Extracting the integer part of numbers is a deceptively simple skill that pays dividends in accuracy, compliance, and clarity. INT, TRUNC, and QUOTIENT give you flexible, high-performance tools to strip away decimals, allocate resources precisely, and feed downstream calculations that demand whole units. With the techniques covered—basic chops, unit division, advanced truncation rules—you are ready to deploy reliable integer extraction in forecasts, logistics planning, billing, and countless other workflows. Continue experimenting: combine these functions with LOOKUPs, conditional formatting, or dynamic arrays to deepen your Excel mastery and drive data-driven decisions confidently.

We use tracking cookies to understand how you use the product and help us improve it. Please accept cookies to help us improve.