Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.
Last reviewed:
=LEFT(A2,FIND("@",A2)-1)Computed by a real spreadsheet engine on the sample data below.
| alice@example.com |
| bob@company.org |
| carol@domain.net |
| david@mail.co |
=LEFT(A2,FIND("@",A2)-1)→alice
Edit the grid or formula, then run it through a real spreadsheet engine — no signup.
Sample data — click any cell to edit
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.
FIND returns #VALUE! and the formula errors. Wrap it: =IFERROR(LEFT(A2,FIND("@",A2)-1),A2) keeps the original text for those cells. TEXTBEFORE accepts a fallback directly as its sixth argument.
Excel 365: =TEXTBEFORE(A2,".",-1) — the -1 means "count from the end". Otherwise use the SUBSTITUTE trick that swaps the last occurrence for a sentinel character and FINDs that.
Yes — Find & Replace with a wildcard. Search for @* and replace with nothing: every cell is truncated at the @ in place. Works in both Excel and Google Sheets.
Yes. FIND("x",…) will not locate "X". Use SEARCH for case-insensitive matching — the rest of the formula stays identical.
LEFT + FIND works unchanged. Sheets also offers =INDEX(SPLIT(A2,"@"),1), but note SPLIT treats EACH character of the delimiter string as a separate delimiter — fine for single characters, surprising for multi-character delimiters.
Extract everything after the first delimiter with MID and FIND, including multi-character delimiters and explicit missing-delimiter handling.
How-toSplit a full name or any delimited text into separate columns. Google Sheets uses SPLIT; Excel uses TEXTSPLIT — here is each.
How-toClean leading, trailing, and double spaces with TRIM — the usual fix for lookups that fail on values that look identical.
How-toTurn numbers stored as text into real numbers with VALUE or by multiplying by 1 — the fix for sums that ignore values.
How-toPull everything after the @ from an email using FIND and MID. Works the same in Excel and Google Sheets.
How-toGet the first name from a full name with LEFT and FIND, splitting on the first space. Works in Excel and Google Sheets.
Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.
Last reviewed: