Use an Excel Conditional Formatting Formula to Match a Column
Question details
Highlight each cell in a target range when its value appears in a specified 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.
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.
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.
In the worksheet, select L5:L20, starting with L5 as the active cell.
Go to Home > Conditional Formatting > New Rule, then choose Use a formula to determine which cells to format.
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.
Click Format, open the Fill tab, select green, and click OK. Click OK again to apply the rule.

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. Open the workbook: Open WPS Spreadsheets and use Open to select your workbook.
- 2. Select the target range: Select L5:L20, starting with L5 as the active cell.
- 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. Set the fill: Open the formatting options, choose a green fill, and confirm the rule to apply it to the selected cells.

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.




