Formatting Issues

Highlight Excel Rows Based on Multiple Values in Column C

Amos GikundaAmos Gikunda Nov 27, 2026 870 views

Question details

Highlight an entire worksheet row when its column C value is neither Running nor Boxing.

Highlight Excel Rows Based on Multiple Values in Column C
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.
Before you start

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.

Solution 1Recommended

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.

1
Select the target range

Select the cells to format, such as A2:C22. Include all columns you want highlighted.

2
Create a new rule

On the Home tab, select Conditional Formatting > New Rule, then choose Use a formula to determine which cells to format.

3
Enter the formula

In the formula box, enter =AND($C2<>"Running",$C2<>"Boxing"). The row number 2 must match the first row of your selected range.

4
Choose the formatting

Select Format, choose a fill color or other formatting, and select OK. Select OK again to apply the rule.

5
Check the result

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.

Create a Formula-Based Conditional Formatting Rule in Excel
Blank cells also match: The formula highlights rows with a blank cell in column C. To exclude blanks, use =AND($C2<>"",$C2<>"Running",$C2<>"Boxing") instead.
WPS Spreadsheets

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. 1. Open the worksheet: Open your Excel workbook in WPS Spreadsheets and select the target range, such as A2:C22.
  2. 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. 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. 4. Set the appearance: Choose Format, select a fill color, and confirm the dialogs to apply the rule to the selected range.
Highlight an entire selected row based on its column C valueOpen and edit Microsoft Excel XLSX filesUse a familiar spreadsheet interfaceCustomize the fill color for matching rows
microsoft office alternative - wps office

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.