Highlight Names in Excel That Appear on Another Sheet
Question details
Highlight mailing-list names that also appear on a served-patrons worksheet.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- A mailing list and a list of served patrons are stored on separate worksheets in the same workbook.
- Observed behavior
- Names on the mailing list should be highlighted when an exact match appears on the served-patrons worksheet.
Identify the cells containing names on both worksheets, excluding any headers. The steps below use Sheet1!A2:A100 for the mailing list and 'patrons served'!A1:A26 for the comparison list; adjust these ranges to fit your workbook.
Use a named range and conditional formatting to highlight matches
Create a formula-based rule that checks each mailing-list name against the served-patrons list.
Open the patrons served worksheet and select A1:A26. Click the Name Box to the left of the formula bar, type ServedNames, and press Enter.
Open Sheet1 and select the names in A2:A100, starting with A2 as the active cell.
Go to Home > Conditional Formatting > New Rule. Choose Use a formula to determine which cells to format and enter =ISNUMBER(MATCH(A2,ServedNames,0)).
Click Format, choose a red fill or font color, and click OK. Click OK again to apply the rule.

Compare names across worksheets in WPS Spreadsheets
Use a named range and a formula-based conditional formatting rule in WPS Spreadsheets to highlight mailing-list names found on another worksheet.
- 1. Open the workbook: Open your workbook in WPS Spreadsheets and locate the mailing-list and served-patrons worksheets.
- 2. Name the patron list: On the served-patrons worksheet, select the cells containing names. In the Name Box beside the formula bar, type ServedNames and press Enter.
- 3. Select the mailing-list names: On the mailing-list worksheet, select the names to highlight, starting with the first data cell.
- 4. Add the formatting rule: Choose Home > Conditional Formatting > New Rule and select the formula-based rule option. Enter =ISNUMBER(MATCH(A2,ServedNames,0)), replacing A2 with the first cell in your selection.
- 5. Set the color: Click Format, choose a fill or font color, and confirm the rule to highlight matching names.

Frequently Asked Questions
Can I reference the other worksheet without creating a named range?
You can try =ISNUMBER(MATCH(A2,'patrons served'!$A$1:$A$26,0)) in the conditional formatting rule. If Excel rejects the cross-sheet reference, name the patron range ServedNames and use =ISNUMBER(MATCH(A2,ServedNames,0)) instead.
Why aren't some matching names highlighted?
Check for extra spaces or spelling differences in the name cells. MATCH with 0 requires an exact text match, although it is not case-sensitive.
What happens when I add more patrons to the list?
Names added outside the ServedNames range will not be checked. In Excel, open Formulas > Name Manager and expand the range to include the new cells.
How do I change the highlight color later?
In Excel, select the mailing-list cells and open Home > Conditional Formatting > Manage Rules. Select the rule, click Edit Rule, and use Format to change the fill or font color.




