Highlight duplicates in two different colors (on a BIG list)

Nerox

New Member
Joined
Apr 21, 2016
Messages
1
Hello,

I've done some researches but havent found what i'm looking for .. I'd like to highlight duplicate cells (Name and Surname) (case insensitive). But with only 2 colors (or perhaps more like 4) - Light green/yellow (otherwise the cell won't be readable when printed...

Is it possible for a macro to look each row and search if "4 cell before and 4 cell after" there is a duplicate .. And if so, color it to one color ? then another color ?

Something like this...
Col B Col C
NAMESURNAME
ABBYJEAN
DUPONTWilliam
DUPONTWILLIAM
abbyjean
RANDOMGuy
RANDOMGUY
ABSILEric
ABSILERIC
ADAMBernard
Absileric

<tbody>
</tbody>

I don't want a rainbow of color. I'd like someting that help the reader to see the duplicates ( change the backgroun of the cell) , even if its a list of "Only duplicates" !

thanks in advance
William - VBA Total newbie
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple

Forum statistics

Threads
1,213,558
Messages
6,114,296
Members
448,564
Latest member
ED38

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top