Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Google Sheets TRUNC Function: How to Cut Numbers Short

· 5 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

The TRUNC function in Google Sheets cuts a number down to a set number of decimal places by removing the extra digits without rounding. The syntax is =TRUNC(value, [places]), where value is the number or cell reference and places is how many decimal places to keep. If you leave places out, it defaults to 0 and returns a whole number. The key thing to remember is that TRUNC never rounds up, even when the next digit is 5 or higher, so =TRUNC(4.789, 2) gives 4.78 while =ROUND(4.789, 2) gives 4.79. That difference is the whole reason the function exists, and it is what makes it useful for things like splitting prices, trimming measured values, or cleaning imported data where you want to drop digits rather than change the value.

What You'll Need

  • A Google account with access to Google Sheets (the free version works fine).
  • A spreadsheet open, either new or existing, with edit permission.
  • A number to work with, typed directly into a formula or stored in a cell you can reference.

Step-by-Step

  1. Open your spreadsheet at sheets.google.com and click the cell where you want the shortened number to appear. Pick an empty cell so you do not overwrite existing data.
  2. Type an equals sign to start a formula, then type TRUNC and an opening parenthesis. Sheets will show a small hint box with the argument order as you type.
  3. Enter the number or cell reference first. For a typed value, use something like =TRUNC(7.896). For a cell, use =TRUNC(A2) where A2 holds the number. Referencing a cell is better when you plan to copy the formula down a column.
  4. Add a comma and the number of decimal places you want to keep. For example, =TRUNC(7.896, 2) returns 7.89, and =TRUNC(7.896, 1) returns 7.8. If you want a whole number, you can either write 0 or leave the second argument out entirely.
  5. Close the parenthesis and press Enter. The cell shows the truncated result, and the formula stays visible in the formula bar when the cell is selected.
  6. To apply it to a whole column, click the cell with your formula, grab the small square handle at the bottom-right corner, and drag it down over the rows you need. Relative references adjust automatically, so A2 becomes A3, A4 and so on.
  7. If you want the result to be a fixed value rather than a live formula, copy the cells, then use Paste special > Values only to replace the formulas with their output. This is useful before exporting or sharing a sheet.

Common Mistakes

The most frequent error is expecting TRUNC to round. It does not. If you need 4.789 to become 4.79, use ROUND instead. TRUNC will always give 4.78 because it simply discards the third decimal.

Another common slip is putting the arguments in the wrong order, such as =TRUNC(2, 7.896), which asks Sheets to keep 2 decimal places of the number 7.896 but with the values swapped it returns an unexpected result or an error. Always put the number first and the places second.

People also forget that a negative places value works in the opposite direction. =TRUNC(1234, -2) returns 1200, cutting digits to the left of the decimal point. That is correct behaviour, but it surprises anyone who expected an error.

Finally, watch for text that looks like a number. If a cell contains a value stored as text, TRUNC may return a #VALUE! error. Check the alignment: numbers sit on the right by default, text on the left.

Tips

Use TRUNC together with division when you want to split an amount into equal parts without rounding up. For example, =TRUNC(100/3, 2) gives 33.33, which is safer than rounding when the total must not exceed the original figure.

Combine TRUNC with INT carefully. INT rounds negative numbers down toward the next lower integer, so =INT(-4.2) returns -5, while =TRUNC(-4.2) returns -4. TRUNC simply drops the decimal, which is usually what people mean by "cut off the decimals."

If you only need to change how a number is displayed rather than its stored value, use the decimal place buttons in the toolbar instead of a formula. The underlying number stays exact, which matters for later calculations.

For dates and times, remember that Sheets stores them as numbers. Truncating a date-time value with =TRUNC(A2) strips the time portion and leaves just the date, which is a handy way to group records by day.

Troubleshooting

If you see #VALUE!, the first argument is probably text. Select the cell, check its alignment, and if needed convert it with =VALUE(A2) or re-enter the number without quotes. If you see #NAME?, the function name is misspelled, often as TRUNK or TRUNCT.

If the result looks unchanged, the number may already have fewer decimal places than you asked to keep. TRUNC does not add zeros, so =TRUNC(5, 3) returns 5, not 5.000. Format the cell with more decimal places if you need trailing zeros to show.

If copying the formula gives wrong results, check whether you used absolute references. A formula like =TRUNC($A$2, 2) stays locked to A2 no matter where you paste it, while =TRUNC(A2, 2) shifts. Use the dollar signs when you want the reference fixed.

If the whole column returns errors after a paste, the source data may have hidden spaces. TRIM the text first or re-import the data as numbers, then reapply the formula.

Frequently Asked Questions

What is the difference between TRUNC and ROUND in Google Sheets?

ROUND changes the last kept digit based on the next digit, so 4.789 becomes 4.79. TRUNC simply removes the extra digits, so 4.789 becomes 4.78. Use TRUNC when you must not increase the value.

Can TRUNC keep zero decimal places?

Yes. Either write =TRUNC(A2, 0) or leave the second argument out with =TRUNC(A2). Both return a whole number by cutting everything after the decimal point.

Does TRUNC work with negative numbers?

Yes. =TRUNC(-4.7) returns -4 because it drops the decimal without rounding down. This differs from INT, which would return -5.

Can I truncate to the left of the decimal point?

Yes. Use a negative places value, such as =TRUNC(1234, -2), which returns 1200. The digits to the left of the decimal are cut and replaced with zeros.

Why does TRUNC return #VALUE!?

The value argument is likely stored as text. Check the cell alignment and convert it to a number, or remove any quotes around the value in the formula.

Does TRUNC change the original number in the cell?

No. TRUNC only produces a result in the cell where the formula sits. The source value stays exactly as it was unless you overwrite it.