What you will learn
- Find a word in text, ignoring capitals
How it works
=SEARCH("pencil",A2) finds pencil, Pencil or PENCIL.
It gives the position where the word starts.
Formulas at a glance
=SEARCH("pencil",A2) | position, any case |
Example
Write the formula to find where "pencil" starts in the first note.
| A | B | C | |
|---|---|---|---|
| 1 | Note | "pencil" at | "book" at |
| 2 | Bring a PENCIL and a Book | ||
| 3 | My pencil is in my book bag | ||
| 4 | Pencil, book, ruler | ||
| 5 | Need: BOOK and pencil |
Click B2 and type =SEARCH("pencil",A2), then press Enter.
The answer is 9.
When to use it
- Finding a word whatever its case
- Checking if a description mentions something
- Flagging rows that contain a keyword
Common mistakes
- Getting #VALUE!The word was not found. Wrap it in IFERROR.
- Using FIND when capitals varyUse SEARCH when the case doesn’t matter.
- Expecting TRUE or FALSESEARCH gives a position. Use ISNUMBER(SEARCH(…)) for TRUE/FALSE.
Practice it on a real sheet
Reading is a start. Doing it is how it sticks. This lesson walks you through every click on a live spreadsheet and checks each answer.