Spreadsheet Practice

SEARCH function

SEARCH returns the position of one piece of text inside another, ignoring upper and lower case, and it understands the ? and * wildcards. Most people use it inside ISNUMBER to answer a simple question: does this cell contain that word?

Available in
Every current version
Category
Text functions
Returns
A number: the position of the match, or #VALUE! if it isn't found.
Google Sheets
Works the same in Google Sheets.

Syntax

=SEARCH(find_text, within_text, [start_num])

ArgumentRequired?What it is
find_textRequiredThe text to look for. ? matches any one character and * any run of characters; put ~ in front to find the symbol itself.
within_textRequiredThe text to search in.
start_numOptionalPosition to start searching from. Leave it out to start at 1.

Examples

Each result below is calculated from the sample sheet by our formula engine, the same one that grades the practice.

CellFormulaResultWhat it shows
C2=SEARCH("mug",B2)9Finds "MUG" even though the case is different
C3=ISNUMBER(SEARCH("cold",B3))TRUETRUE because the description mentions cold
C4=SEARCH("m?g",A4)8A wildcard: ? stands for any single character

Try it live

This is the sample sheet. Change any number or text, or edit a formula, and the results update.

Show the sample data as a table
ProductDescriptionResult
Free shipping mugCeramic MUG, 12 oz9
Steel water bottleKeeps drinks coldTRUE
Travel Mug LidSpare lid for travel mugs8

Practice SEARCH

Graded instantly, then re-checked on changed data.

Flag reviews about delivery

In B2, return TRUE if the review in A2 mentions "delivery" in any case, and FALSE if not. Fill down to B6.

Common mistakes

What you seeWhy, and how to fix it
#VALUE! when the text is missingSEARCH returns an error, not 0. Use =ISNUMBER(SEARCH("x",A2)) for TRUE or FALSE, or IFERROR(SEARCH("x",A2),0).
It matches part of a wordSEARCH("cat",A2) also finds "category". Search for " cat " with spaces, or check the characters around the match, when you need whole words.
Searching for * or ?They act as wildcards. Put a tilde in front to find the character itself: SEARCH("~?",A2).

Tips

  • To count cells containing a word, =COUNTIF(A2:A100,"*delivery*") is shorter and also ignores case.

Questions

How do I check if a cell contains specific text?

=ISNUMBER(SEARCH("text",A2)) returns TRUE if the text appears anywhere in the cell, in any case. Use FIND instead of SEARCH for a case-sensitive check.

Does SEARCH support wildcards?

Yes. ? matches any single character and * matches any sequence of characters. FIND doesn't support them.

Last reviewed October 2026. Every example result on this page is calculated live by the Spreadsheet Practice formula engine.