# Google Sheets TRUNC Function: Syntax, Examples & Tips

- URL: https://betteranalyst.com/google-sheets/trunc-function
- Author: Better Analyst

Formula Bot is now Better Analyst—same account, more powerful analysis.Formula Bot is now Better Analyst—same account and workflows, with more powerful analysis, dashboards, and automation.

[Learn what changed](https://betteranalyst.com/formula-bot-is-now-better-analyst)

Truncates a number to a certain number of significant digits by omitting less significant digits.

```
=TRUNC(value, [places])
```

Generate FormulaExplain Formula

One free generation or explanation per browser, shared across Excel and Google Sheets. Account usage limits apply afterward.

Describe the TRUNC you need in plain EnglishGenerate Formula

## Parameters

| Parameter | Required | Description |
| - | - | - |
| **value** | Yes | The number to truncate. |
| **places** | No | The number of digits to keep after the decimal point. Defaults to 0. Negative values truncate to the left of the decimal point (tens, hundreds, …). |

## What Is TRUNC?

TRUNC cuts a number off at a chosen number of decimal places without rounding. `=TRUNC(3.789, 1)` returns 3.7, whereas `=ROUND(3.789, 1)` returns 3.8. TRUNC simply discards the digits beyond the cut point.

## How TRUNC Works

- With **places = 0** (the default), TRUNC removes the entire fractional part: `TRUNC(8.99)` is 8.
- With **positive places**, it keeps that many decimals: `TRUNC(8.9876, 2)` is 8.98.
- With **negative places**, it zeroes digits to the left of the decimal point: `TRUNC(1789, -2)` is 1700.
- TRUNC always moves **towards zero**, for both positive and negative numbers: `TRUNC(-8.99)` is −8.

## TRUNC vs. INT vs. ROUND vs. ROUNDDOWN

| Formula | 7.8 | −7.8 |
| - | - | - |
| `TRUNC(x)` | 7 | −7 |
| `INT(x)` | 7 | −8 |
| `ROUND(x)` | 8 | −8 |
| `ROUNDDOWN(x)` | 7 | −7 |
| `FLOOR(x, 1)` | 7 | −8 |

The important difference is with negative numbers. INT rounds down to the next lower integer, so −7.8 becomes −8. TRUNC just drops the decimals, so −7.8 becomes −7. ROUNDDOWN also rounds toward zero, so for most purposes `TRUNC(x, n)` and `ROUNDDOWN(x, n)` give the same answer; the difference is that TRUNC's second argument is optional.

## Basic Examples

### Drop the decimals

```
=TRUNC(42.97)
```

Returns 42.

### Keep two decimal places

```
=TRUNC(B2, 2)
```

If B2 is 19.9987, returns 19.99.

### Truncate to the nearest hundred

```
=TRUNC(C2, -2)
```

If C2 is 4,567, returns 4,500.

### Extract the date from a timestamp

```
=TRUNC(A2)
```

Because a timestamp is a date serial plus a time fraction, TRUNC removes the time and leaves the date. Format the result as a date.

### Get the decimal part of a number

```
=B2 - TRUNC(B2)
```

If B2 is 5.75, returns 0.75 (for negatives, it returns a negative fraction).

## Common Use Cases

- **Billing in whole units**: Charge only for complete hours or units used.
- **Removing time from date-times** before grouping or comparing dates.
- **Financial reporting** where rules require truncating rather than rounding.
- **Splitting a value into whole and fractional parts**, e.g. hours and minutes from decimal hours.
- **Age in completed years**: `=TRUNC(YEARFRAC(B2, TODAY()))`.

## Common Errors

- **Expecting rounding**: TRUNC never rounds up. If 2.999 should become 3, use ROUND.
- **Negative number surprises**: People sometimes expect −2.5 to become −3. That's INT or FLOOR behaviour; TRUNC gives −2.
- **Display vs. value confusion**: A cell formatted to show two decimals may still hold more. TRUNC changes the stored value; formatting doesn't.
- **#VALUE!**: The input is non-numeric text.

## Tips and Best Practices

- Use TRUNC(A2) rather than INT(A2) to strip times from dates — they behave the same for positive serials, and TRUNC makes the intent clear.
- Use negative places to bucket values (to the nearest 10, 100, 1,000) for grouping.
- Remember that floating-point representation can affect truncation: a value displayed as 0.3 might be stored as 0.29999999999999998, giving 0.29 when truncated to 2 places. Round first to a high precision, e.g. `=TRUNC(ROUND(A2, 10), 2)`, if exactness matters.

## Related Functions

INT, ROUND, ROUNDDOWN, ROUNDUP, FLOOR, CEILING, MOD, and [TO\_DATE](https://betteranalyst.com/google-sheets/todate-function).

## Example use case

A consultant bills clients only for complete hours. With logged hours like 6.8 in column B, =TRUNC(B2) returns 6 billable hours, and =TRUNC(B2)\*C2 calculates the invoice amount at the hourly rate in column C.

## Need more help with Google Sheets formulas?

Sign up for Better Analyst and get unlimited AI-powered formula generation, explanations, and advanced data analysis.

[Create Free Account](https://betteranalyst.com/signup)[Try Formula Generator](https://betteranalyst.com/excel-ai)

## Google Sheets how-to guides

- [How To Lock A Row In Google Sheets](https://betteranalyst.com/google-sheets/how-to-lock-a-row-in-google-sheets)
- [How To Lock Cells In Google Sheets](https://betteranalyst.com/google-sheets/how-to-lock-cells-in-google-sheets)
- [How To Make A Copy Of An Google Sheets Sheet](https://betteranalyst.com/google-sheets/how-to-make-a-copy-of-an-google-sheets-sheet)
- [How To Make A Graph In Google Sheets](https://betteranalyst.com/google-sheets/how-to-make-a-graph-in-google-sheets)
- [How To Make A Histogram In Google Sheets](https://betteranalyst.com/google-sheets/how-to-make-a-histogram-in-google-sheets)
- [How To Make A Line Graph In Google Sheets](https://betteranalyst.com/google-sheets/how-to-make-a-line-graph-in-google-sheets)
- [How To Make A Pie Chart In Google Sheets](https://betteranalyst.com/google-sheets/how-to-make-a-pie-chart-in-google-sheets)
- [How To Make A Table In Google Sheets](https://betteranalyst.com/google-sheets/how-to-make-a-table-in-google-sheets)

## Explore all Google Sheets formulas

Browse our complete library of Google Sheets formula guides

Compare your options

## Decide with evidence, not a sales pitch.

Open a neutral research prompt in the AI tool you already use. Compare capabilities, limitations, and fit before you choose.

1. [01ChatGPTOpen a balanced comparison prompt in ChatGPT.](https://chatgpt.com/?prompt=Compare%20Better%20Analyst%20with%20using%20a%20general-purpose%20AI%20assistant%20for%20data%20analysis.%20Evaluate%20spreadsheet%20and%20document%20analysis%2C%20dashboards%2C%20repeatable%20reports%2C%20code%20transparency%2C%20data%20connections%2C%20pricing%2C%20and%20limitations.%20Use%20current%20public%20sources%2C%20distinguish%20verified%20facts%20from%20assumptions%2C%20and%20explain%20which%20types%20of%20users%20each%20option%20fits%20best.)
2. [02ClaudeOpen the same research prompt in Claude.](https://claude.ai/new?q=Compare%20Better%20Analyst%20with%20using%20a%20general-purpose%20AI%20assistant%20for%20data%20analysis.%20Evaluate%20spreadsheet%20and%20document%20analysis%2C%20dashboards%2C%20repeatable%20reports%2C%20code%20transparency%2C%20data%20connections%2C%20pricing%2C%20and%20limitations.%20Use%20current%20public%20sources%2C%20distinguish%20verified%20facts%20from%20assumptions%2C%20and%20explain%20which%20types%20of%20users%20each%20option%20fits%20best.)
3. [03PerplexityResearch the comparison with linked web sources.](https://www.perplexity.ai/search?q=Compare%20Better%20Analyst%20with%20using%20a%20general-purpose%20AI%20assistant%20for%20data%20analysis.%20Evaluate%20spreadsheet%20and%20document%20analysis%2C%20dashboards%2C%20repeatable%20reports%2C%20code%20transparency%2C%20data%20connections%2C%20pricing%2C%20and%20limitations.%20Use%20current%20public%20sources%2C%20distinguish%20verified%20facts%20from%20assumptions%2C%20and%20explain%20which%20types%20of%20users%20each%20option%20fits%20best.)

AI answers can be incomplete. Check source links, current pricing, and product documentation before deciding.
