# SEARCH formula generator

> Describe what you need and get a SEARCH formula for Excel and Google Sheets, run on real data before you copy it. Plus 8 tested SEARCH examples.

Source: https://spreadsheetpractice.com/tools/formula-generator/search · Updated October 29, 2026 · Formulas and results on this page were run by the Spreadsheet Practice formula engine on November 20, 2026

SEARCH returns the position of one piece of text inside another, ignoring upper and lower case, and it understands the ? and * wildcards.

Describe the task at [SEARCH formula generator](https://spreadsheetpractice.com/tools/formula-generator/search) and get a SEARCH formula for Excel and Google Sheets, tested on real data.

## Tested SEARCH examples

### Find the position of a character in a text string

`=FIND($E$1,A2)`

Excel. Result on the sample sheet: 5 rows (B2:B6). [See it and try it](https://spreadsheetpractice.com/formulas/find-position-of-a-character-in-text)

### Check if a cell contains specific text

`=IF(ISNUMBER(SEARCH($E$1,A2)),"Yes","No")`

Excel. Result on the sample sheet: 6 rows (B2:B7). [See it and try it](https://spreadsheetpractice.com/formulas/if-cell-contains-text)

### Why COUNTIF with wildcards doesn't count numbers

`=SUMPRODUCT(--ISNUMBER(SEARCH(E1,A2:A11)))`

Excel. Result on the sample sheet: 5. [See it and try it](https://spreadsheetpractice.com/formulas/countif-wildcard-with-numbers)

### Filter rows that contain specific text

`=FILTER(A2:D10,ISNUMBER(SEARCH(G1,B2:B10)))`

Excel. Result on the sample sheet: 4 rows (F3:I6). [See it and try it](https://spreadsheetpractice.com/formulas/filter-rows-that-contain-text)

### Sum if a cell does not contain specific text

`=SUMIF(A2:A9,"<>*"&E1&"*",B2:B9)`

Excel. Result on the sample sheet: $291.85. [See it and try it](https://spreadsheetpractice.com/formulas/sum-if-cell-does-not-contain-text)

### Extract a date from a text string

`=DATEVALUE(MID(A2,SEARCH("20??-??-??",A2),10))`

Excel. Result on the sample sheet: 5 rows (B2:B6). [See it and try it](https://spreadsheetpractice.com/formulas/extract-a-date-from-text)

### Count cells that contain a whole word

`=SUMPRODUCT(--ISNUMBER(SEARCH(" "&E1&" "," "&A2:A10&" ")))`

Excel. Result on the sample sheet: 5. [See it and try it](https://spreadsheetpractice.com/formulas/count-whole-word-matches)

### Check if a cell contains one of several words

`=IF(SUMPRODUCT(--ISNUMBER(SEARCH($D$2:$D$4,A2)))>0,"Escalate","")`

Excel. Result on the sample sheet: 7 rows (B2:B8). [See it and try it](https://spreadsheetpractice.com/formulas/if-cell-contains-one-of-several-words)

## Questions

### What does the SEARCH formula generator do?

You describe the task in plain English, and it writes the formula, using SEARCH where that's the right tool, for your table or a sample one. The formula is run in our engine in Excel and Google Sheets mode before you see it, so you get its result, not just a guess.

### What does SEARCH do?

SEARCH returns the position of one piece of text inside another, ignoring upper and lower case, and it understands the ? and * wildcards.

### Can I learn to write SEARCH formulas myself?

Yes. Each example below opens a page where you try the formula in a live grid and it's checked as you go, and the SEARCH function page has a practice exercise.

---

Spreadsheet Practice (https://spreadsheetpractice.com) teaches spreadsheet formulas by practice: every exercise is graded in a live grid and re-checked on changed data.
