Function Problems

Use an Excel Conditional Formatting Formula to Match a Column

Steve KSteve K Dec 2, 2026 869 views

Question details

Highlight each cell in a target range when its value appears in a specified column.

Use an Excel Conditional Formatting Formula to Match a Column
Product
Microsoft Excel and WPS Spreadsheets
Device & OS
not provided
Scenario
A user wants to check each value in L5:L20 against the same lookup range, C5:C80, and highlight matches green.
Observed behavior
Each matching cell is filled green, with the lookup range fixed while the target cell reference changes by row.
Before you start

Identify the target range and the column range to search. In this example, select L5:L20 and check values against C5:C80; adjust the references if your data is elsewhere.

Solution 1Recommended

Create a conditional formatting rule with MATCH in Excel

Use this formula to highlight each target cell whose value appears anywhere in a fixed lookup range.

1
Select the target cells

In the worksheet, select L5:L20, starting with L5 as the active cell.

2
Create a formula rule

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

3
Enter the formula

In the formula box, enter =ISNUMBER(MATCH(L5,$C$5:$C$80,0)). The reference L5 changes for each row, while $C$5:$C$80 stays fixed.

4
Choose a green fill

Click Format, open the Fill tab, select green, and click OK. Click OK again to apply the rule.

Create a conditional formatting rule with MATCH in Excel
Adjust the ranges: If your selected range starts in a different cell, replace L5 with that first cell. Update $C$5:$C$80 to your lookup range and keep the dollar signs to fix it.
WPS Spreadsheets

Highlight column matches in WPS Spreadsheets

Use a formula-based conditional formatting rule in WPS Spreadsheets to check each target cell against a fixed lookup range and fill matches green.

  1. 1. Open the workbook: Open WPS Spreadsheets and use Open to select your workbook.
  2. 2. Select the target range: Select L5:L20, starting with L5 as the active cell.
  3. 3. Add the formula rule: Go to Home > Conditional Formatting > New Rule, choose the option to use a formula, and enter =ISNUMBER(MATCH(L5,$C$5:$C$80,0)).
  4. 4. Set the fill: Open the formatting options, choose a green fill, and confirm the rule to apply it to the selected cells.
Highlight values that appear in another columnKeep the lookup range fixed as the rule applies to each rowOpen and edit Microsoft Excel XLSX and XLS filesUse familiar spreadsheet tools in WPS Office
QA img-9

Frequently Asked Questions

Why does the formula use dollar signs around the lookup range?

The dollar signs in $C$5:$C$80 keep the lookup range fixed as conditional formatting evaluates each cell in L5:L20.

How does each row check its own value?

The reference L5 is relative. When the rule evaluates L6, it checks L6 against the same fixed range; the same pattern continues for the other selected rows.

How can I avoid highlighting blank cells?

In the conditional formatting formula box, use =AND(L5<>"",ISNUMBER(MATCH(L5,$C$5:$C$80,0))) to skip blank target cells.

How do I apply the rule to more rows later?

In Excel, go to Home > Conditional Formatting > Manage Rules, select the rule, and expand its Applies to range, for example from =$L$5:$L$20 to =$L$5:$L$100.