CAN_SEARCH

Returns TRUE if the second text contains the first.

Unlike CAN_FIND, CAN_SEARCH is case-insensitive.

Usage

CAN_SEARCH(find_text, within_text, [start_position])

Parameters

find_text

(Required) The substring to search for within the text.

within_text

(Required) The text string in which to search for the substring.

start_position

The character’s position within the text where the search should begin. Defaults is 1, which starts from the beginning.

Examples

Example With these variables Result

CAN_SEARCH(“word”, “Many words here”)

(None)

TRUE

CAN_SEARCH(“WORD”, “Many words here”)

(None)

TRUE

CAN_SEARCH(“moon”, “Many words here”)

(None)

FALSE

CAN_SEARCH(“/”, serial, 10)

serial is "abcde123459/42"

TRUE

More information

This is equivalent to using FIND and checking that the result is not NOTHING. So NOT(ISNOTHING(SEARCH("/", serial_num))) is the same as CAN_SEARCH("/", serial_num).

See also