# TRUNC formula generator

> Describe what you need and get a TRUNC formula for Excel and Google Sheets, run on real data before you copy it. Plus 5 tested TRUNC examples.

Source: https://spreadsheetpractice.com/tools/formula-generator/trunc · Updated October 29, 2026 · Formulas and results on this page were run by the Spreadsheet Practice formula engine on November 20, 2026

TRUNC cuts a number off at a set number of decimals without rounding.

Describe the task at [TRUNC formula generator](https://spreadsheetpractice.com/tools/formula-generator/trunc) and get a TRUNC formula for Excel and Google Sheets, tested on real data.

## Tested TRUNC examples

### Remove the time from a date

`=INT(A2)`

Excel. Result on the sample sheet: 5 rows (B2:B6). [See it and try it](https://spreadsheetpractice.com/formulas/remove-the-time-from-a-date)

### Remove decimals without rounding

`=TRUNC(A2)`

Excel. Result on the sample sheet: 6 rows (B2:B7). [See it and try it](https://spreadsheetpractice.com/formulas/remove-decimals-without-rounding)

### Get the decimal part of a number

`=MOD(A2,1)`

Excel. Result on the sample sheet: 5 rows (B2:B6). [See it and try it](https://spreadsheetpractice.com/formulas/decimal-part-of-a-number)

### Round down

`=ROUNDDOWN(B2,2)`

Excel. Result on the sample sheet: 5 rows (C2:C6). [See it and try it](https://spreadsheetpractice.com/formulas/round-down)

## Questions

### What does the TRUNC formula generator do?

You describe the task in plain English, and it writes the formula, using TRUNC where that's the right tool, for your table or a sample one. The formula is run in our engine in Excel and Google Sheets mode before you see it, so you get its result, not just a guess.

### What does TRUNC do?

TRUNC cuts a number off at a set number of decimals without rounding.

### Can I learn to write TRUNC formulas myself?

Yes. Each example below opens a page where you try the formula in a live grid and it's checked as you go, and the TRUNC function page has a practice exercise.

---

Spreadsheet Practice (https://spreadsheetpractice.com) teaches spreadsheet formulas by practice: every exercise is graded in a live grid and re-checked on changed data.
