FormulaCraft

How to extract text before a specific 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.

EmailResult
john.doe@example.com
jane.smith@domain.org
info@website.net

=LEFT(A2, FIND("@", A2) - 1)john.doe

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 cell containing the text you want to extract.
  2. 2Determine the character before which you want to extract the text.
  3. 3Use the FIND function to locate the position of this character.
  4. 4Apply the LEFT function to extract the text up to the position found by the FIND function minus one.

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 the character does not exist in some cells?

The formula will return an error. You can use IFERROR to handle such cases gracefully.

Can I extract text after a specific character instead?

Yes, use RIGHT and LEN functions in combination with FIND.

Does this work with special characters?

Yes, it works with any character, including special ones like @, #, etc.

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: