Highlight Duplicates Based on Adjacent Column

EducateExcel

New Member
Joined
Sep 15, 2021
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Hi There!

Hoping I can explain this well enough. In the attached sample file, I have product listed down column "C" to send to a store; then all of the stores listed "E:L". I want to have a macro in my personal book to read the active sheet and tell me by highlighting the cell red, if it's a duplicate value based on the value of column "C".

It would need to loop through each cell, that is not orange, and highlight he duplicate within the store. I am trying to quickly view what we are double sending to a location.

Thanks in advance!
Start:
Highlight Planned Duplicates.xlsx
ABCDEFGHIJKL
1Region:CCCCCCCC
2Banner:Divis. 1Divis. 1Divis. 1Divis. 1Divis. 2Divis. 3Divis. 3Divis. 3
3Store Name:City 1 - WestCity 1 - EastCity 1 - SouthCity 2City 1 - WestCity 3City 4City 5
4Display GroupSpot NameItem CodeClass1A1B1C1D2E3F3G3H
5FRONT DISPLAY1818181817151515
6FRONT DISPLAYFRONT DISPLAY01ITEM1PRODUCT11111111
7FRONT DISPLAYFRONT DISPLAY02ITEM2PRODUCT11111111
8FRONT DISPLAYFRONT DISPLAY03ITEM3PRODUCT1111111
9FRONT DISPLAYFRONT DISPLAY04ITEM4PRODUCT11111111
10FRONT DISPLAYFRONT DISPLAY05ITEM5PRODUCT11111111
11FRONT DISPLAYFRONT DISPLAY06ITEM6PRODUCT11111111
12FRONT DISPLAYFRONT DISPLAY07ITEM7PRODUCT11111111
13FRONT DISPLAYFRONT DISPLAY08ITEM8PRODUCT11111111
14FRONT DISPLAYFRONT DISPLAY09ITEM9PRODUCT11111111
15FRONT DISPLAYFRONT DISPLAY10ITEM10PRODUCT11111111
16FRONT DISPLAYFRONT DISPLAY11ITEM11PRODUCT11111111
17FRONT DISPLAYFRONT DISPLAY12ITEM4PRODUCT11111111
18FRONT DISPLAYFRONT DISPLAY13ITEM13PRODUCT11111111
19FRONT DISPLAYFRONT DISPLAY14ITEM14PRODUCT1111111
20FRONT DISPLAYFRONT DISPLAY15ITEM15PRODUCT11111111
21FRONT DISPLAYFRONT DISPLAY16ITEM16PRODUCT1111
22FRONT DISPLAYFRONT DISPLAY17ITEM8PRODUCT1
23FRONT DISPLAYFRONT DISPLAY18ITEM18PRODUCT11111
24FRONT DISPLAYFRONT DISPLAY19ITEM19PRODUCT11111
25SIDE DISPLAY1818181817151515
26SIDE DISPLAYSIDE DISPLAY01ITEM19PRODUCT11111111
27SIDE DISPLAYSIDE DISPLAY02ITEM20PRODUCT11111111
28SIDE DISPLAYSIDE DISPLAY03ITEM21PRODUCT1111111
29SIDE DISPLAYSIDE DISPLAY04ITEM10PRODUCT11111111
30SIDE DISPLAYSIDE DISPLAY05ITEM23PRODUCT11111111
31SIDE DISPLAYSIDE DISPLAY06ITEM5PRODUCT11111111
32SIDE DISPLAYSIDE DISPLAY07ITEM25PRODUCT11111111
33SIDE DISPLAYSIDE DISPLAY08ITEM26PRODUCT11111111
Starting


Finish:
Highlight Planned Duplicates.xlsx
ABCDEFGHIJKL
1Region:CCCCCCCC
2Banner:Divis. 1Divis. 1Divis. 1Divis. 1Divis. 2Divis. 3Divis. 3Divis. 3
3Store Name:City 1 - WestCity 1 - EastCity 1 - SouthCity 2City 1 - WestCity 3City 4City 5
4Display GroupSpot NameItem CodeClass1A1B1C1D2E3F3G3H
5FRONT DISPLAY1818181817151515
6FRONT DISPLAYFRONT DISPLAY01ITEM1PRODUCT11111111
7FRONT DISPLAYFRONT DISPLAY02ITEM2PRODUCT11111111
8FRONT DISPLAYFRONT DISPLAY03ITEM3PRODUCT1111111
9FRONT DISPLAYFRONT DISPLAY04ITEM4PRODUCT11111111
10FRONT DISPLAYFRONT DISPLAY05ITEM5PRODUCT111111
11FRONT DISPLAYFRONT DISPLAY06ITEM6PRODUCT11111111
12FRONT DISPLAYFRONT DISPLAY07ITEM7PRODUCT11111111
13FRONT DISPLAYFRONT DISPLAY08ITEM8PRODUCT11111111
14FRONT DISPLAYFRONT DISPLAY09ITEM9PRODUCT11111111
15FRONT DISPLAYFRONT DISPLAY10ITEM10PRODUCT11111111
16FRONT DISPLAYFRONT DISPLAY11ITEM11PRODUCT11111111
17FRONT DISPLAYFRONT DISPLAY12ITEM4PRODUCT111111
18FRONT DISPLAYFRONT DISPLAY13ITEM13PRODUCT11111111
19FRONT DISPLAYFRONT DISPLAY14ITEM14PRODUCT1111111
20FRONT DISPLAYFRONT DISPLAY15ITEM15PRODUCT11111111
21FRONT DISPLAYFRONT DISPLAY16ITEM16PRODUCT1111
22FRONT DISPLAYFRONT DISPLAY17ITEM8PRODUCT1
23FRONT DISPLAYFRONT DISPLAY18ITEM18PRODUCT11111
24FRONT DISPLAYFRONT DISPLAY19ITEM19PRODUCT1111
25SIDE DISPLAY1818181817151515
26SIDE DISPLAYSIDE DISPLAY01ITEM19PRODUCT11111111
27SIDE DISPLAYSIDE DISPLAY02ITEM20PRODUCT11111111
28SIDE DISPLAYSIDE DISPLAY03ITEM21PRODUCT1111111
29SIDE DISPLAYSIDE DISPLAY04ITEM10PRODUCT11111111
30SIDE DISPLAYSIDE DISPLAY05ITEM23PRODUCT11111111
31SIDE DISPLAYSIDE DISPLAY06ITEM5PRODUCT11111111
32SIDE DISPLAYSIDE DISPLAY07ITEM25PRODUCT11111111
33SIDE DISPLAYSIDE DISPLAY08ITEM26PRODUCT11111111
Once Run
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
Conditional formatting like this maybe

Excel Formula:
=AND($D6<>"",COUNTIFS($C:$C,$C6,H:H,H6)>1)
 
Upvote 0
Conditional formatting like this maybe

Excel Formula:
=AND($D6<>"",COUNTIFS($C:$C,$C6,H:H,H6)>1)
Hmmm. Not sure If I'm using it incorrectly, but it doesn't seem to be functioning as planned. Highlights random blanks, and doesn't highlight the duplicates. I would need this to function on all columns past D:D.

Conditional Formatting may not be the best path as I have upwards of 200 columns to the left of D:D - I was thinking a macro to read the data, then another to reverse the formatting.

Thank you for the input!
 
Upvote 0

Forum statistics

Threads
1,223,884
Messages
6,175,173
Members
452,615
Latest member
bogeys2birdies

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