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

CONTAINS()

Does text contain fragment?

Returns a Yes/No expression, as follows:

  • TRUE if the text fragment is found in the search value.
  • FALSE if the text fragment is not found in the search value.

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

Sample usage

CONTAINS("abc", "a") returns  TRUE

CONTAINS("abc", "bc") returns TRUE

CONTAINS("abc", "d") returns FALSE

CONTAINS("I'm bored!", "Red")  returns TRUE

CONTAINS([Address], "PO Box") answers the question: does the Address indicate a post office box?

CONTAINS([Email], "@") answers the question: does the Email contain at least one at sign (@)?

CONTAINS("abc", LEFT([Name], 1)) answers the question: is the left-most character of the value of the Name an a, b, or c? Equivalent to IN(LEFT([Name], 1), {"a", "b", "c"}).

See also: LEFT(), IN()

Syntax

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

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

See also

ENDSWITH()

FIND()

IN()

STARTSWITH()

Was this helpful?

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