您请求访问的页面目前没有您的语言版本。您可以从页面底部选择其他语言,或使用 Google Chrome 的内置翻译功能将网页内容即时翻译成您选择的语言。

ENDSWITH()

Does text end with fragment?

Returns a Yes/No expression, as follows:

  • TRUE if the text fragment is found at the end of the search value.
  • FALSE if the text fragment is not found at the end of the search value.

Note: The search is case-insensitive; upper- and lower-case letters are equivalent.

Sample usage

ENDSWITH("aBc", "a") returns FALSE (a occurs, but not at the end)

ENDSWITH("aBc", "bc") returns TRUE

ENDSWITH("aBc", "D") returns FALSE (D does not occur)

ENDSWITH("I'm bored!", "Red") returns FALSE (red occurs, but not at the end)

ENDSWITH([Email], "@gmail.com") answers the question: does the Email contain a GMail address? Functionally equivalent to but more efficient than ("gmail.com" = INDEX(SPLIT([Email], "@")), 2). See also: INDEX(), SPLIT()

Syntax

ENDSWITH(text-to-search, search-for)

  • text-to-search - Text to be searched.
  • search-for - Text string to search for in text-to-search.

See also

FIND()

IN()

LEFT()

RIGHT()

STARTSWITH()

Was this helpful?

How can we improve it?
true
Search
Clear search
Close search
Main menu
5826773420355871507
true
Search Help Center
false
true
true
true
false
false
false
false
false
⌂ 换网址