SpreadsheetFormulas
beginnerMIDFIND

Extract the Domain from an Email Address

You have a column of email addresses and need just the part after the @ — to group signups by company, spot personal Gmail addresses in a B2B list, or count contacts per organization.

Quick formula
=MID(A2,FIND("@",A2)+1,100)
Sample input
1Email
2ana@acme.com
3ben@northline.io
4cara@acme.com
Result
1EmailDomain
2ana@acme.comacme.com
3ben@northline.ionorthline.io
4cara@acme.comacme.com

Excel & Google Sheets

=MID(A2,FIND("@",A2)+1,100)

This formula works in both Excel and Google Sheets.

How it works

FIND locates the position of the @ sign, and MID returns everything starting one character after it — the +1 skips the @ itself, and 100 just means "take up to 100 characters," which is longer than any real domain. Because every valid email has exactly one @, this is one of the most reliable text extractions there is, and it works identically in Excel and Google Sheets. In Excel 365 you can also write =TEXTAFTER(A2,"@") for the same result.

FIND("@",A2)
Finds the position of the @ — in "ana@acme.com" that's 4.
+1
Steps past the @ so it isn't included in the result.
MID(A2, …, 100)
Returns up to 100 characters from that point: "acme.com".

When to use it

Use this to segment a signup list by company, filter out free-mail domains like gmail.com from a lead list, or build a domain column you can point COUNTIF at to see contacts per organization.

Common mistakes

  • Cells without an @ return #VALUE!.

    FIND errors when the @ is missing — a blank cell or a name typed where an email should be. Guard it: =IFERROR(MID(A2,FIND("@",A2)+1,100),"").

  • Trailing spaces sneak into the domain.

    "ana@acme.com " keeps its invisible space, so acme.com won't match acme.com elsewhere. Wrap the source: =MID(TRIM(A2),FIND("@",TRIM(A2))+1,100).

Did this formula help?

Engine-verified against the sample data aboveLast reviewed 2026-07-08