Forum Discussion
Highlight Duplicate values across multiple sheets
In the following, I will assume that the names are in A2 and down on each sheet.
Select A2:A1000 or however far down the data go on the ALL NAMES sheet.
A2 should be the active cell in the selection.
On the Home tab of the ribbon, click Conditional Formatting > New Rule...
Select 'Use a formula to determine which cells to format'.
Enter the formula
=OR(ISNUMBER(XMATCH(A2, Gold!A:A)), ISNUMBER(XMATCH(A2, Silver!A:A)), ISNUMBER(XMATCH(A2, Top!A:A)))
Add more ranges as needed. If a sheet name contains spaces or punctuation, enclose it in single quotes: 'Sheet Name'!A:A
Click Format...
Activate the Fill tab.
Select a highlight color.
Click OK, then click OK again.
- DanZ24Oct 01, 2024Copper Contributor
HansVogelaar When I try it gives me an error message of "You may not use references to other workbooks for Conditional Formatting criteria"
- HansVogelaarOct 01, 2024MVP
Conditional Formatting can refer to ranges on other worksheets within the same workbook, but not to ranges on worksheets in other workbooks.
- jrazzabo630Apr 30, 2024Copper ContributorThank you for your response - it doesn't appear to be doing anything
- HansVogelaarApr 30, 2024MVP
It works for me in a small test workbook. Could you attach a small sample workbook demonstrating the problem (without sensitive data), or if that is not possible, make it available through OneDrive, Google Drive, Dropbox or similar?
- JucabraSep 11, 2024Copper Contributor
HansVogelaar The formula worked just fine for me! You just have to remember to close with 3 parentheses at the end of it and select a format to highlight or otherwise distinguish your data.