FormulaCraft

How to check if a cell contains specific text in Excel and Google Sheets

Excel & Google Sheets
=ISNUMBER(SEARCH("abc", A2))

Verified example

Computed by a real spreadsheet engine on the sample data below.

Text
abcdef

=ISNUMBER(SEARCH("abc", A2))TRUE

Try it with your data

Edit the grid or formula, then run it through a real spreadsheet engine — no signup.

Sample data — click any cell to edit

Runs server-side · free · no signup

Step by step

  1. 1SEARCH("abc",A2) returns the position if found, or an error if not.
  2. 2ISNUMBER converts that to TRUE (found) or FALSE (not found).
  3. 3Use it directly or inside IF to label rows.

Tips

Need it for your exact data?

Describe your columns in plain English and get the precise formula for your sheet, with the right Excel or Sheets syntax.

Frequently asked

Why not just use SEARCH on its own?

SEARCH returns a position number or an error. ISNUMBER gives a tidy TRUE/FALSE that's easier to filter and chart.

Formulas used

Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.

Last reviewed: