Skip to content

=LEFTOFLAST

The =LEFTOFLAST() function returns all text that appears to the left of the last occurrence of a specified character or word within a text string.

=LEFTOFLAST(ReturnLeftOf; SearchInString)
  • ReturnLeftOf
    The character or text to locate. All characters to the left of the last occurrence 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 last 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

  • Works with multiple occurrences; only the final one determines the split

  • 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

=LEFTOFLAST(brown; quick brown dog outran slow brown sloth)

Result:

quick brown dog outran slow

(All text to the left of the last occurrence of “brown”)


LEFTOFLAST, text extraction, substring, string functions, last occurrence, text manipulation, calculated value, formula function