How to Highlight Values Found on Other Worksheets in Excel
Question details
The user wants to highlight specific values in a master list if those matching values appear across multiple other worksheets.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Comparing a master data list against multiple different worksheets to identify and highlight existing duplicates.
- Observed behavior
- Currently, the user needs a reliable method or formula (such as conditional formatting) to automatically highlight these matching values across different sheets.
Ensure all your worksheets are stored within the same workbook. If your workbook contains a large number of sheets, consider saving a backup, as complex cross-sheet conditional formatting can occasionally slow down performance.
Use a Reference Sheet and Conditional Formatting
This is the most reliable method for checking values across multiple sheets by consolidating data into a single reference point for the conditional formatting rule.
Excel's conditional formatting works best when referencing a single continuous range. By combining your search data into one sheet, you can easily use a COUNTIF formula to check for matches.
Create a new worksheet in your workbook and name it 'Reference'.
Copy or link the relevant columns from your other worksheets into this 'Reference' sheet so all the data you want to check against is in one place.
Go back to your master list worksheet and highlight the range of cells you want to apply the formatting to.
Navigate to the 'Home' tab on the ribbon, click on 'Conditional Formatting', and select 'New Rule'.
Choose 'Use a formula to determine which cells to format'. Enter a formula like =COUNTIF(Reference!$A:$A, A2)>0. Adjust 'Reference!$A:$A' to match your consolidated data column, and 'A2' to be the first cell in your selected master list.
Click the 'Format' button, go to the 'Fill' tab, choose a highlight color, and click 'OK' twice to apply the rule.

Use a VBA Macro to Find and Highlight Duplicates
For workbooks with dozens of sheets where combining data manually is impractical, a VBA macro can automate the search process across the entire workbook.
Highlight Cross-Sheet Data Effortlessly with WPS Spreadsheet
WPS Office provides a robust Spreadsheet application that fully supports advanced conditional formatting and formulas like COUNTIF, making it incredibly easy to track matching values across multiple sheets. It is a lightweight, free alternative that ensures high productivity.
- 1. Open your Workbook: Launch WPS Spreadsheet and open the file containing your master list and other sheets.
- 2. Set up a Reference Sheet: Consolidate the data you want to search against into a single 'Reference' sheet for easy formula targeting.
- 3. Apply Conditional Formatting: Select your master list, go to 'Home' > 'Conditional Formatting' > 'New Rule', and input your COUNTIF formula to apply the highlight.

Frequently Asked Questions
Can I use conditional formatting directly across multiple sheets without a reference sheet?
Excel's conditional formatting cannot reference multiple sheets directly in a single simple rule. You must either use a consolidated reference sheet, utilize defined names (Named Ranges) for each sheet, or employ VBA.
Why is my COUNTIF formula not highlighting anything?
Ensure that your cell references are correct. The range in the COUNTIF formula must be absolute (e.g., $A:$A), while the criteria cell referencing your master list should be relative (e.g., A2) so the rule can evaluate each row correctly as it moves down the list.
Will highlighting values slow down my workbook?
Yes, applying extensive conditional formatting across thousands of rows and referencing large datasets can reduce performance. If the workbook becomes sluggish, consider using Power Query or VBA instead.
How can I check across 50+ worksheets?
For a very large number of sheets, manually creating a reference sheet is impractical. Using Power Query to append all sheets into one master table, or using a VBA macro to search the entire workbook, is highly recommended for scalability.




