You are here: All Help Topics > Other Information > Cell Functions > IN function

IN Function

The IN function evaluates the position of one string value (value 2) within another string value (value 1).

IN(value 1,value 2)

IN("Toronto, Ontario","Ontario")

Returns a value of 10 as the O in Ontario is the 10th character of the string.

IN("Toronto, Ontario","Alberta")

Returns a value of 0 as Alberta does not appear in the string at all.

Related Topics