Function Problems

Highlight Cells That Do Not Contain Listed Words in Excel

Olivia MillerOlivia Miller Nov 25, 2026 868 views

Question details

Highlight cells whose text does not contain any of several specified words.

Highlight Cells That Do Not Contain Listed Words in Excel
Product
Microsoft Excel
Device & OS
not provided
Scenario
A user wants to check a range for several words that may appear within longer text.
Observed behavior
Cells containing none of the specified words should receive the chosen formatting.
Before you start

Identify the range to format and its top-left cell. Prepare the words to check; the example below assumes the selected range starts at F1.

Solution 1Recommended

Create a Formula Rule for Cells Without Any Listed Words

Use COUNTIF wildcards to check for each word within the cell's text and format cells where all checks return zero.

1
Select the target range

Select the cells to check, starting with F1 as the top-left cell. If your range starts elsewhere, replace each F1 in the formula with that cell reference.

2
Create a formula rule

Go to Home > Conditional Formatting > New Rule, then select Use a formula to determine which cells to format.

3
Enter the formula

In the formula box, enter =AND(COUNTIF(F1,"*Wordone*")=0,COUNTIF(F1,"*Wordtwo*")=0,COUNTIF(F1,"*Wordthree*")=0,COUNTIF(F1,"*Wordfour*")=0,COUNTIF(F1,"*Wordfive*")=0). Replace the example words with your own.

4
Choose formatting

Select Format, choose a fill color or another style, and click OK. Click OK again to apply the rule to the selected range.

Create a Formula Rule for Cells Without Any Listed Words
Blank cells can be highlighted: Blank cells contain none of the listed words, so they also meet this rule. To exclude them, add F1<>"" as another condition inside AND.
WPS Spreadsheet

Highlight Cells Without Listed Words in WPS Spreadsheet

Use a formula-based conditional formatting rule in WPS Spreadsheet to check each cell for several partial-text matches and highlight cells with none of them.

  1. 1. Open the workbook: Open WPS Spreadsheet and use Open to select your Excel workbook.
  2. 2. Select the cells: Select the range to check and note its top-left cell. The example formula uses F1.
  3. 3. Add a formula rule: Go to Home > Conditional Formatting > New Rule and choose the option to use a formula. Enter =AND(COUNTIF(F1,"*Wordone*")=0,COUNTIF(F1,"*Wordtwo*")=0), replacing the words and F1 as needed. Add more COUNTIF conditions for additional words.
  4. 4. Set the format: Choose a fill color in the rule's Format settings, then confirm the dialogs to apply the rule.
Highlight cells that contain none of your specified words.Use COUNTIF wildcards to find words within longer text.Open and edit Microsoft Excel XLSX and XLS files.Apply a visible fill color to matching cells.
microsoft office alternative - wps office

Frequently Asked Questions

Does the formula find a word inside longer text?

Yes. The asterisks in a criterion such as "*Wordone*" match any characters before or after the word, so COUNTIF can find it within longer text.

How do I prevent blank cells from being highlighted?

Add a nonblank condition inside AND. For example, use =AND(F1<>"",COUNTIF(F1,"*Wordone*")=0) and include the remaining COUNTIF conditions before the closing parenthesis.

Is the word matching case-sensitive?

No. COUNTIF text matching is not case-sensitive, so "Wordone" and "wordone" are treated as matches.

What if my selected range starts at a cell other than F1?

Replace every F1 in the formula with the top-left cell of your selected range. Keep the reference relative, without dollar signs, so the rule adjusts for each cell.

How can I check for more words?

Add another condition inside AND for each word, such as COUNTIF(F1,"*Another word*")=0. Separate the conditions with commas.