Syntax
| Parameter | Description |
|---|---|
| find_text | Parameter of the SEARCH function. |
| within_text | Parameter of the SEARCH function. |
| [start_num] | (Optional.) Parameter of the SEARCH function. |
Examples
Case-insensitive text search
=SEARCH("apple", A2)
Check if cell contains a word
=IF(ISNUMBER(SEARCH("error", A2)), "Has Error", "OK")
Wildcard search
=SEARCH("p*e", A2)
Common Errors
The search text was not found. Wrap with ISNUMBER(SEARCH(...)) to safely test for containment.
The start_num argument is out of range. It must be between 1 and the length of the text.
Tips
=ISNUMBER(SEARCH("keyword", A1)) is the standard way to check if a cell contains specific text. Returns TRUE or FALSE.
Use * for any number of characters and ? for exactly one character. To search for a literal * or ?, precede with ~.
Use SEARCH for case-insensitive matching and wildcard support. Use FIND when you need case-sensitive matching.
Try SEARCH in Viztab
Import your data and use SEARCH with 370+ other formulas. No signup required.
Open Viztab