Formulyo

Excel 365 + Google Sheets · TEXTBEFORE

Cut any text before a character

Returns everything before the character you choose.

The formula

=TEXTBEFORE(A2, "@")

What each part means

Example

Before
AB
1EmailUser
2laura.gomez@acme.com
3joao@brasilco.br
4priya.s@tech.in
5tom@shop.co.uk
After
AB
1EmailUser
2laura.gomez@acme.comlaura.gomez
3joao@brasilco.brjoao
4priya.s@tech.inpriya.s
5tom@shop.co.uktom

Step by step

  1. Click cell B2.
  2. Type the formula: =TEXTBEFORE(A2, "@")
  3. Press Enter.
  4. Drag the small square in the bottom-right corner of the cell down to copy it to the other rows.

Where it works

The same formula in other languages

Get 1 formula a day, free

Plus a free weekly planner template for Excel and Google Sheets. Unsubscribe in 1 click.

✓ Done! Check your inbox to confirm.

Want ready-made templates? See the Formulyo pack →

Keep learning