FormulaCamp
Completed
← All functions
Text

TEXTBEFORE

The part of a text before a delimiter.

Syntax

TEXTBEFORE(text, delimiter, [instance_num])

Example: =TEXTBEFORE(A2,"@")

Available in: Excel 2024, Microsoft 365

Try it

A tiny spreadsheet with example data. Edit the formula or any number and see the result.

Formula in D2: =TEXTBEFORE(A3,"@")

Example spreadsheet for TEXTBEFORE
ABCD
1TextOtherResult
2Alice Johnsonalice johnsonalice
3alice@shop.comALICE@shop.com
4 extra spaces
5SKU-2026-0415
6iced coffee, tea, sugar
7Order 417 shipped
Result in D2: alice
Practice this in a lesson: LET, TEXTBEFORE, TEXTAFTER

More in Text