Texteasy
SEARCH()
Returns the position of a substring within a string. Case-insensitive.
Syntax
fx
=SEARCH(search_for, text_to_search, [starting_at])
Arguments
Example
fx
=SEARCH("hello", "Hello world")
Paste this into Google Sheets to run it. The live playground on this site covers 24 of the 61 functions, and SEARCH isn't one of them yet.
Common pitfalls
- Case-INSENSITIVE: use
FINDif case must match. - Supports
?(one char) and*(any chars) wildcards. To match a literal?or*, prefix with~. - Returns
#VALUE!when not found. Combine withIFERRORfor safe boolean tests.
Related formulas
Used by