Highlight Cells That Do Not Contain Listed Words in Excel
Question details
Highlight cells whose text does not contain any of several specified words.

- 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.
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.
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.
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.
Go to Home > Conditional Formatting > New Rule, then select Use a formula to determine which cells to format.
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.
Select Format, choose a fill color or another style, and click OK. Click OK again to apply the rule to the selected range.

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. Open the workbook: Open WPS Spreadsheet and use Open to select your Excel workbook.
- 2. Select the cells: Select the range to check and note its top-left cell. The example formula uses F1.
- 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. Set the format: Choose a fill color in the rule's Format settings, then confirm the dialogs to apply the rule.

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.




