Home › Functions › Text › TEXTBEFORE
fx
TEXTBEFORE
Text  ·  Since: Microsoft 365  ·  9 languages

Returns text that occurs before a given character or string. It is the opposite of the TEXTAFTER function .

🌐 Translations

English TEXTBEFORE
Deutsch TEXTBEFORE
Français TEXTBEFORE
Español TEXTBEFORE
Italiano TESTO.PRIMA
Português TEXTBEFORE
Nederlands TEKST.VOOR
Polski TEKST.PRZED
Русский ТЕКСТДО

📦 Availability

Excel versionAvailable
Excel 2007 ✗
Excel 2013 ✗
Excel 2019 ✗
Excel 2021 ✗
Microsoft 365 ✓
Translate a formula with this function
fx EN
fx DE

⌨ Syntax

TEXTBEFORE(text,delimiter,[instance_num],[match_mode],[match_end],[if_not_found])

Arguments

text (required)
delimiter (required)
instance_num (optional)
match_mode (optional)
match_end (optional)
if_not_found (optional)

▶ Examples

=TEXTBEFORE(A2,"Red")
=TEXTBEFORE(A3,"Red")
=TEXTBEFORE(A3,"red",2)

Related functions

Copied to clipboard