FormulaCraft

How to highlight cells that contain specific text in Excel and Google Sheets

Topic:Conditional formatting
Excel & Google Sheets
=ISNUMBER(SEARCH("pending",A2))

Verified example

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

Status
Pending approval
Completed
Pending review
Approved

=ISNUMBER(SEARCH("pending",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. 1Select the range to format, e.g. A2:A20.
  2. 2Open Conditional Formatting and choose the 'Use a formula' option.
  3. 3Enter =ISNUMBER(SEARCH("pending",A2)), set your highlight color, and save the rule.

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

Can I highlight based on a cell reference instead of a hardcoded word?

Yes. Put the keyword in a cell like E1, then use =ISNUMBER(SEARCH($E$1,A2)) in the conditional formatting formula so you can change the keyword without editing the rule.

More on Conditional formatting

See all →

Formulas used

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

Last reviewed: