Excel Search for Text in Cell

If you just need to excel search for text in cell and move on, the boxed answer at the top is all you need. The rest of this page is for when you want to understand why it works in Excel, adapt it to a trickier version, or make it robust enough to hand to a colleague. We keep the opening short on purpose — the depth is here when you want it, not in your way when you don’t.

Exact answer

In Excel: use =ISNUMBER(SEARCH("text",A2)) for a case-insensitive contains test, or wrap it in IF to return labels such as Yes and No.

On this page7
Annotated stepsExcel
1

Put the text to find in quotes or in a separate cell.

2

Use SEARCH for case-insensitive matching or FIND for case-sensitive matching.

3

Wrap with ISNUMBER to get TRUE/FALSE.

4

Wrap with IF when the sheet needs labels or categories.

=ISNUMBER(SEARCH("text",A2))
Ctrl+CthenCtrl+Shift+V+Cthen+Ctrl+VPaste values · WindowsMac

What this does

Excel has no single CONTAINS function, so the common pattern is SEARCH inside ISNUMBER. SEARCH returns a position when the text is found and an error when it is not; ISNUMBER converts that into TRUE or FALSE. FIND is the case-sensitive alternative. Most people learn this as a sequence of clicks and forget it by next week; learning it as a pattern instead is what lets you apply it to the next, slightly different version of the problem without starting from scratch. That is the difference this page is trying to make. For “excel search for text in cell”, the reliable version is a short checking loop, not just the first command that appears to work. Run it on a deliberately small range first, watch how the affected cells change, and only then apply the same setup to the full sheet. When a formula is involved, keep the inputs labelled beside it, reference cells instead of typing values, and apply number formatting only after the result checks out. That is what makes a layout choice that keeps the sheet readable and sortable useful in real work: repeatable, auditable, and not dependent on memory or luck.

A worked example

A2 contains North-West Region. =ISNUMBER(SEARCH("west",A2)) returns TRUE because SEARCH ignores case. =IF(ISNUMBER(SEARCH("west",A2)),"West","Other") returns West for matching rows and Other for the rest. Contains formulas power tagging, routing, cleanup and exception reports where exact equality is too strict. A practical tip before you scale it up: build it once on a small block of test data, confirm the number against the tool on this page, and only then point it at your real sheet. That one habit catches almost every mistake while it is still cheap to fix, long before a wrong figure reaches a report or a colleague.

In Google Sheets

Everything above works in Google Sheets too. Excel and Sheets share the formula syntax used here; only the surrounding menus are arranged differently. That portability is deliberate — learn it once and it follows you between the two tools and across Windows and Mac. The aim was to get you unstuck fast and leave you a little more capable than a copy-paste would. The answer is at the top and the detail above shows why it holds — so the next time a colleague asks, you can answer without reaching for search. The short version of “excel search for text in cell”: the answer is at the top of this page, the tool proves it on your own numbers, and the sections above explain why it holds so the next variation does not stump you. Excel rewards people who reference cells instead of typing values and who keep inputs separate from formulas, because that is what makes a result you can audit months later. Build it once, deliberately, with the live tool as a check, and you convert a one-off lookup into a reusable skill — which is the whole point of learning the why and not just the what.

Common mistakes

  • Using equals when the cell contains more than just the target word.
  • Forgetting that SEARCH is not case-sensitive.
  • Letting #VALUE! show instead of wrapping SEARCH in ISNUMBER.
  • Hard-coding text in many formulas instead of referencing one criteria cell.

Frequently asked questions

Is there a CONTAINS function in Excel?

No. Use ISNUMBER with SEARCH or FIND.

How do I make the test case-sensitive?

Use FIND instead of SEARCH.

Can I return custom text?

Yes. Wrap the test in IF.

Other ways people ask this

On the way here you may have searched this as “excel search text in cell”, “how to search for merged cells in excel”, “excel formula search for text in cell” and “excel formula to search for text in a cell” — it is all the same task, and this page is the single, complete answer to it.

Why do people search for this in so many different ways?

Because the same task has many names. “excel search text in cell”, “how to search for merged cells in excel”, “excel formula search for text in cell” all point at the one operation explained on this page, which is why they all lead here.