FormulaCraft

How to remove the last N characters from a cell in Excel and Google Sheets

Topic:Text manipulation
Excel & Google Sheets
=LEFT(A2,LEN(A2)-3)

Verified example

Computed by a real spreadsheet engine on the sample data below.

FilenameBase
report.csv
data.txt
log.csv
notes.csv
backup.csv

=LEFT(A2,LEN(A2)-3)report.

Try it with your data

Edit the grid or formula, then run it through a real spreadsheet engine — no signup.

Sample data — click any cell to edit

Runs server-side · free · no signup

Step by step

  1. 1Determine how many characters to remove from the end — for example, 3 to remove a ".csv" or similar suffix.
  2. 2Enter =LEFT(A2,LEN(A2)-3) in an empty cell; this returns all characters except the last 3.
  3. 3Adjust the number 3 to however many trailing characters you need to drop.
  4. 4Use IFERROR to handle cells shorter than N characters: =IFERROR(LEFT(A2,LEN(A2)-3),"").

Tips

Working on a sheet you inherited? Run the Auditor on the whole file first — it flags every #REF!, #N/A, broken column pattern, and inconsistent formula in seconds, free, no signup.

Frequently asked

What if I don't know how many characters to remove?

Use FIND or SEARCH to locate the delimiter and calculate the removal dynamically.

Does this differ between Excel and Google Sheets?

No — LEFT and LEN work identically in both applications.

More on Text manipulation

See all →

Formulas used

Related tasks

Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.

Last reviewed: