FormulaCraft

How to remove everything after a character in Excel and Google Sheets

Topic:Text manipulation
Excel & Google Sheets
=LEFT(A2,FIND("@",A2)-1)

Verified example

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

Email
alice@example.com
bob@company.org
carol@domain.net
david@mail.co

=LEFT(A2,FIND("@",A2)-1)alice

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. 1Identify the character you want to split on — for example '@' or ','.
  2. 2Use FIND("@",A2) to get the position of that character.
  3. 3Subtract 1 so you exclude the character itself from the result.
  4. 4Wrap in LEFT: =LEFT(A2,FIND("@",A2)-1) returns everything before the character.
  5. 5Add IFERROR around it to handle cells where the delimiter is absent: =IFERROR(LEFT(A2,FIND("@",A2)-1),A2).

Tips

Need it for your exact data?

Describe your columns in plain English and get the precise formula for your sheet, with the right Excel or Sheets syntax.

Frequently asked

What if the character doesn't appear in the cell?

FIND returns #VALUE!, so wrap the whole formula in IFERROR(…,A2) to return the original text unchanged.

Is FIND case-sensitive?

Yes, FIND is case-sensitive. Use SEARCH instead of FIND if you need case-insensitive matching.

More on Text manipulation

See all →

Formulas used

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

Last reviewed: