Examples for the excel formula trunc
Copy these examples into a spreadsheet and adjust the ranges for your own data.
TRUNC syntax pattern
=TRUNC(number, [digits])Use this TRUNC pattern as the starting point for your spreadsheet formula.
TRUNC in a worksheet
=TRUNC(A2, [digits])Rounds a number toward zero to the specified number of digits after the decimal point.
When to use TRUNC
Use TRUNC when you need to round a number toward zero to the specified number of digits after the decimal point.
- Build totals, rounded metrics, and numeric calculations.
- Clean up numeric inputs before analysis.
How TRUNC works in Quadratic
In Quadratic, TRUNC follows the syntax TRUNC(number, [digits]). The function works inside Quadratic formulas and can be combined with spreadsheet ranges, tables, and other formulas.
Common TRUNC mistakes
Most TRUNC issues come from mismatched argument types, ranges that do not cover the intended data, or optional parameters being omitted when the default behavior is not what you expected.
- Check each required parameter before copying the formula across a sheet.
- Confirm that ranges line up with the rows or columns you intend to analyze.
- Use Quadratic AI to explain or debug the formula when the result looks wrong.