Forum Discussion
Find out & highlight duplicate data(number)within same excel sheet in diff column or in diff sheet
Yes, using conditional formatting will let you highlight duplicates. If they are on 1 sheet then simple go to Conditional Formatting -> Highlight Cell Rules -> Duplicate Values ...
But if you want to cross over multiple sheets then you need a custom rule AND you will have to define a range NAME and the range on each sheet can't be too big (i.e. max # rows combined must be less than max # rows allowed in Excel; NOTE alternatively you could stack columns if you much more limited # of columns per sheet but have many more rows)
So in the Name Manager I defined a name called 'allsheets' and defined it as the multiple sheet range $A$1:$J$10 across between and including Sheet1:Sheet2 (in my case that was only those 2 sheets).
Then on each sheet you will need to create a custom rule similar to the following:
=SUM(--(A1=VSTACK(allsheets)))>1
Alternatively you could put the VSTACK directly into the Name Definition and remove it from the Conditional Formatting Rule (really not sure if it makes any difference).
Sample attached and the dark red is from the above rule and the light red is the default single sheet (only the 159 is highlighted because it is in row 11 and the above rule stops at row 10 (and because of order of the rules the 161 is shown in dark red)