ExcelUnpackUnpack Excel, one formula at a time.
Log inSign up

Lesson 52 · Text search

SEARCH in Excel

SEARCH works like FIND but ignores capital letters. =SEARCH("pencil",A2) finds pencil, Pencil or PENCIL and gives the position where it starts.

Practice this lesson →Pro lesson. The first 4 lessons are free.

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.

ABC
1Note"pencil" at"book" at
2Bring a PENCIL and a Book
3My pencil is in my book bag
4Pencil, book, ruler
5Need: 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.

SEARCH in Excel: how it works, with examples · ExcelUnpack