Highlight Excel Rows Based on Multiple Values in Column C
Question details
Highlight an entire worksheet row when its column C value is neither Running nor Boxing.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- A worksheet contains activity values in column C, and the user wants to visually identify rows with other values.
- Observed behavior
- Rows should be highlighted when their column C value does not match either excluded activity.
Identify the full range of columns and rows you want to highlight, such as A2:C22. Check that Running and Boxing are spelled consistently in column C.
Create a Formula-Based Conditional Formatting Rule in Excel
Use an AND formula to apply formatting to every selected cell in rows where column C is neither Running nor Boxing.
Select the cells to format, such as A2:C22. Include all columns you want highlighted.
On the Home tab, select Conditional Formatting > New Rule, then choose Use a formula to determine which cells to format.
In the formula box, enter =AND($C2<>"Running",$C2<>"Boxing"). The row number 2 must match the first row of your selected range.
Select Format, choose a fill color or other formatting, and select OK. Select OK again to apply the rule.
Review the selected range and confirm that rows with other column C values are highlighted. Use Home > Conditional Formatting > Manage Rules to check the formula and Applies to range if needed.

Highlight Rows with a Conditional Formula in WPS Spreadsheets
Use a formula-based conditional formatting rule in WPS Spreadsheets to highlight rows whose column C value is neither Running nor Boxing.
- 1. Open the worksheet: Open your Excel workbook in WPS Spreadsheets and select the target range, such as A2:C22.
- 2. Add a conditional rule: On the Home tab, open Conditional Formatting and choose New Rule. Select the option to use a formula to determine which cells to format.
- 3. Enter the formula: In the formula field, enter =AND($C2<>"Running",$C2<>"Boxing"). Adjust the row number if your selected range starts on a different row.
- 4. Set the appearance: Choose Format, select a fill color, and confirm the dialogs to apply the rule to the selected range.

Frequently Asked Questions
Why does the formula use $C2 instead of C2?
The dollar sign locks the column reference to C while allowing the row number to change for each row in the selected range.
How do I avoid highlighting blank rows?
Edit the rule through Home > Conditional Formatting > Manage Rules and use =AND($C2<>"",$C2<>"Running",$C2<>"Boxing").
How can I highlight columns beyond A through C?
Select a wider range, such as A2:H22, before creating the rule. For an existing rule, change its Applies to range under Home > Conditional Formatting > Manage Rules.
Does the formula distinguish between uppercase and lowercase?
No. Excel's standard text comparisons are not case-sensitive, so Running and RUNNING are treated as equal. Extra spaces or different spellings can still cause a row to be highlighted.




