FormulaCraft

How to extract the username from an email 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.smith@company.org
carol@domain.net
david.j@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. 1Put your email addresses in column A.
  2. 2In the result column type =LEFT(A2,FIND("@",A2)-1).
  3. 3FIND("@",A2) returns the position of the @ sign.
  4. 4Subtracting 1 excludes the @ itself, and LEFT extracts exactly that many characters from the start.
  5. 5Copy the formula down for all rows.

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 a cell doesn't contain an @ sign?

FIND returns #VALUE! — wrap in IFERROR(LEFT(A2,FIND("@",A2)-1),A2) to return the original text when @ is missing.

Does this work for subaddressed emails like alice+promo@example.com?

Yes — the formula returns 'alice+promo' as the username, which is correct. Strip the plus portion separately if needed.

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: