Skip to content

=LEFTOF

The =LEFTOF function returns all text that appears to the left of a specified character or word within a text value.

=LEFTOF(ReturnLeftOf; SearchInString)
  • ReturnLeftOf
    The character or text to locate. All characters to the left of this value will be returned.

  • SearchInString
    The text string (or field value) to search within.

  • Scans the text string from left to right

  • Finds the first occurrence of the ReturnLeftOf value

  • Returns all characters to the left of that occurrence

  • If the ReturnLeftOf value is not found, the function returns an empty value

  • Only the first occurrence of the search value is used; subsequent matches are ignored

  • Spaces and special characters are included in the result

  • Works with text fields or text-converted numbers

  • Formula functions are case sensitive and must be written in ALL CAPS

To return everything to the left of the @ symbol in an email address:

=LEFTOF("@"; [[Email Address]])

This returns the username portion of the email address.

In the example above, the function will return quick because it is to the left of the search text brown.


LEFTOF, text extraction, substring, string functions, email parsing, text manipulation, calculated value, formula function