Flag every cell that mentions a keyword — “urgent,” a product code, an error word. An ISNUMBER + SEARCH rule highlights partial matches anywhere in the text, and you can point it at a search box for a live filter feel.
The example
Notes containing “urgent” are flagged.
| A | |
|---|---|
| 1 | Note |
| 2 | URGENT: call back |
| 3 | Routine follow-up |
| 4 | Mark as urgent |
The formula
The conditional-formatting rule:
How it works
SEARCH locates the text; ISNUMBER converts the result to TRUE/FALSE:
- Select the range and add a formula rule:
=ISNUMBER(SEARCH("urgent", A1)). SEARCHreturns the position of the keyword if found, or a#VALUE!error if not. It’s case-insensitive and matches partial text.ISNUMBERturns a real position into TRUE (highlight) and the error into FALSE (skip).- Pick a fill and click OK — every cell mentioning the keyword lights up.
Make it interactive: put the keyword in a cell (say F1) and reference it: =ISNUMBER(SEARCH($F$1, A1)). Now typing in F1 re-highlights instantly — a live keyword filter. Use FIND instead of SEARCH for case-sensitive matching.
Try it: interactive demo
Type a keyword; matching notes highlight.
Variations
Match a search box
Reference a keyword cell:
Case-sensitive
Use FIND instead of SEARCH:
Any of several words
OR a few keywords:
Pitfalls & errors
You need ISNUMBER. SEARCH alone returns a number or an error, not TRUE/FALSE. Wrapping it in ISNUMBER is what makes the rule work.
SEARCH vs FIND. SEARCH is case-insensitive and allows wildcards; FIND is case-sensitive and literal. Choose deliberately.
Empty keyword matches everything. If you reference a search cell and it’s blank, SEARCH finds the empty string in every cell — guard with $F$1<>"" if needed.
Practice workbook
Frequently asked questions
How do I highlight cells containing specific text in Excel?
How do I make the keyword come from a cell?
How do I make the match case-sensitive?
Stop fighting formulas. Learn them in a day.
This recipe is one of hundreds of real-world formulas we teach. Our Excel Formulas & Functions class covers lookups, logic, text, and dynamic arrays hands-on — live in Dallas–Fort Worth, Houston, Austin, Oklahoma City, Denver, or online.
See the Formulas & Functions Class