Compare on a row

Romano_odK

Active Member
Joined
Jun 4, 2020
Messages
379
Office Version
  1. 365
Platform
  1. Windows
Good afternoon,

Got a long sheet with 3 columns with GTIN codes. These need to be compared to each other and when one is off I need the line to be red for example. So if A2, B2 and C2 are not the same I need to be able to see that. Is that possible to do?

Thank you for your time.

Romano
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
You can do that with conditional formatting, select A2 to the last row in C & use this formula
Excel Formula:
=countifs($A2:$C2,$A2)<>3
 
Upvote 0
Solution
Try:
VBA Code:
Sub CompareData()
    Application.ScreenUpdating = False
    Dim v As Variant, dic As Object, i As Long
    v = Range("A2", Range("A" & Rows.Count).End(xlUp)).Resize(, 3).Value
    Set dic = CreateObject("Scripting.Dictionary")
    For r = LBound(v) To UBound(v)
        For c = 1 To UBound(v, 2) - 1
            If v(r, c) <> v(r, c + 1) Then
                Range("A" & r + 1).Resize(, 3).Interior.ColorIndex = 3
                Exit For
            End If
        Next c
    Next r
    Application.ScreenUpdating = True
End Sub
 
Upvote 0
You can do that with conditional formatting, select A2 to the last row in C & use this formula
Excel Formula:
=countifs($A2:$C2,$A2)<>3
You can do that with conditional formatting, select A2 to the last row in C & use this formula
Excel Formula:
=countifs($A2:$C2,$A2)<>3
Thank you this as well as the other solution provides work perfectly.
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0
Try:
VBA Code:
Sub CompareData()
    Application.ScreenUpdating = False
    Dim v As Variant, dic As Object, i As Long
    v = Range("A2", Range("A" & Rows.Count).End(xlUp)).Resize(, 3).Value
    Set dic = CreateObject("Scripting.Dictionary")
    For r = LBound(v) To UBound(v)
        For c = 1 To UBound(v, 2) - 1
            If v(r, c) <> v(r, c + 1) Then
                Range("A" & r + 1).Resize(, 3).Interior.ColorIndex = 3
                Exit For
            End If
        Next c
    Next r
    Application.ScreenUpdating = True
End Sub
One little question, how can I get it to start on column E3? So, E3,F3 and G3. Thank you again.
 
Upvote 0
Just replace all the A's in the code with an "E". There are three occurrences.
 
Upvote 0
Just replace all the A's in the code with an "E". There are three occurrences.
Good morning,

I changed the settings accordingly. Now what I get is that to the eye the same values are marked as not equal. Do you understand why?

Project MDB.xlsm
ABCEFGH
1
2
3ArtikelcodeOmschrijvingLeverancierGTIN_leverancierZoekcodeGTIN_VerkoopeenheidGTIN_Omverpakking
4100000Vito Glaserfix 111 6x2 mm wit - 10x25 m10027 - Vito GmbH8712759037825871275903782587127590378254044041014158
5100001Vito Glaserfix 111 6x2 mm zwart - 10x25 m10027 - Vito GmbH8712759037832871275903783287127590378324044041014165
6100002Vito Glaserfix 111 6x3 mm wit - 10x25 m10027 - Vito GmbH8712759037849871275903784987127590378494044041014172
7100003Vito Glaserfix 111 6x3 mm zwart - 10x25 m10027 - Vito GmbH8712759037856871275903785687127590378564044041014189
8100004Vito Glaserfix 111 6x4 mm wit - 10x25 m10027 - Vito GmbH8712759037863871275903786387127590378634044041014196
9100005Vito Glaserfix 111 6x4 mm zwart - 10x25 m10027 - Vito GmbH8712759037870871275903787087127590378704044041014202
10100006Vito Glaserfix 111 9x2 mm wit - 10x25 m10027 - Vito GmbH8712759037917871275903791787127590379174044041014011
11100007Vito Glaserfix 111 9x2 mm zwart - 10x25 m10027 - Vito GmbH8712759037924871275903792487127590379244044041014028
12100008Vito Glaserfix 111 9x3 mm wit - 10x25 m10027 - Vito GmbH8712759037955871275903795587127590379554044041014035
13100009Vito Glaserfix 111 9x3 mm zwart - 10x25 m10027 - Vito GmbH8712759037962871275903796287127590379624044041014042
14100010Vito Glaserfix 111 9x4 mm wit - 10x25 m10027 - Vito GmbH8712759035500871275903550087127590355004044041014059
15100011Vito Glaserfix 111 9x4 mm zwart - 10x25 m10027 - Vito GmbH8712759038341871275903834187127590383414044041014066
16100012Vito Glaserfix 111 9x5 mm wit - 10x10 m10027 - Vito GmbH8712759037993871275903799387127590379934044041014455
17100013Vito Glaserfix 111 9x5 mm zwart - 10x10 m10027 - Vito GmbH8712759038006871275903800687127590380064044041014080
18100014Vito Glaserfix 111 9x6 mm wit - 10x10 m10027 - Vito GmbH8712759038013871275903801387127590380134044041014097
19100015Vito Glaserfix 111 9x6 mm zwart - 10x10 m10027 - Vito GmbH8712759038020871275903802087127590380204044041020661
20100016Vito Glaserfix 111 12x3 mm zwart - 10x25 m10027 - Vito GmbH871275903778887127590377888712759037788
21101000Vito Glaserfix 111 9x1 mm wit - 33 m10027 - Vito GmbH8712759037887871275903788787127590378874044041221341
22101001Vito Glaserfix 111 9x1 mm zwart - 33 m10027 - Vito GmbH8712759037894871275903789487127590378944044041220689
23101002Vito Glaserfix 111 9x2 mm zwart - 10 m10027 - Vito GmbH8712759037900871275903790087127590379004044041014349
24101003Vito Glaserfix 111 9x4 mm wit - 5 m10027 - Vito GmbH8712759037979871275903797987127590379794044041014240
25101004Vito Glaserfix 111 9x4 mm zwart - 5 m10027 - Vito GmbH87127590379868712759037986
26103000Vitoglas 120 celband 6x2 mm grijs - 10x10 m10027 - Vito GmbH8712759010156871275901015687127590101564044041034019
27103001Vitoglas 120 celband 6x2 mm wit - 10x10 m10027 - Vito GmbH8712759015007871275901500787127590150074044041034026
28103002Vitoglas 120 celband 6x3 mm grijs - 10x10 m10027 - Vito GmbH8712759010255871275901025587127590102554044041213148
29103003Vitoglas 120 celband 6x3 mm wit - 10x10 m10027 - Vito GmbH8712759015106871275901510687127590151064044041036402
30103004Vitoglas 120 celband 6x4 mm grijs - 10x10 m10027 - Vito GmbH871275901030987127590103098712759010309
31103005Vitoglas 120 celband 6x4 mm wit - 10x10 m10027 - Vito GmbH871275901520587127590152058712759015205
32103006Vitoglas 120 celband 6x5 mm grijs - 5x10 m10027 - Vito GmbH871275901040887127590104088712759010408
33103007Vitoglas 120 celband 9x2 mm grijs - 5x20 m10027 - Vito GmbH8712759010507871275901050787127590105074044041221662
34103008Vitoglas 120 celband 9x2 mm wit - 5x20 m10027 - Vito GmbH8712759015403871275901540387127590154034044041018019
35103009Vitoglas 120 celband 9x3 mm grijs - 5x20 m10027 - Vito GmbH8712759010606871275901060687127590106064044041018040
36103010Vitoglas 120 celband 9x3 mm wit - 5x20 m10027 - Vito GmbH8712759015502871275901550287127590155024044041018347
37103011Vitoglas 120 celband 9x4 mm grijs - 5x20 m10027 - Vito GmbH8712759030505871275903050587127590305054044041018064
38103012Vitoglas 120 celband 9x4 mm wit - 5x20 m10027 - Vito GmbH8712759015601871275901560187127590156014044041018408
39103013Vitoglas 120 celband 9x5 mm grijs - 10x10 m10027 - Vito GmbH8712759030604871275903060487127590306044044041214961
40103014Vitoglas 120 celband 9x5 mm wit - 10x10 m10027 - Vito GmbH8712759015702871275901570287127590157024044041039434
41103015Vitoglas 120 celband 9x6 mm grijs - 10x10 m10027 - Vito GmbH8712759010903871275901090387127590109034044041034170
42103016Vitoglas 120 celband 9x6 mm wit - 10x10 m10027 - Vito GmbH8712759015809871275901580987127590158094044041034187
43103017Vitoglas 110 celband 9x8 mm grijs - 10x10 m10027 - Vito GmbH8712759011009871275901100987127590110094044041028636
44103018Vitoglas 120 celband 12x2 mm grijs - 10x20 m10027 - Vito GmbH871275901110887127590111088712759011108
45103019Vitoglas 120 celband 12x2 mm wit - 10x20 m10027 - Vito GmbH8712759034855871275903485587127590348554044041034200
46103020Vitoglas 120 celband 12x3 mm grijs - 10x20 m10027 - Vito GmbH8712759011306871275901130687127590113064044041035535
47103021Vitoglas 120 celband 12x4 mm grijs - 10x20 m10027 - Vito GmbH8712759011207871275901120787127590112074044041001936
48103022Vitoglas 120 celband 12x5 mm grijs - 10x10 m10027 - Vito GmbH8712759011405871275901140587127590114054044041220696
49103023Vitoglas 120 celband 12x5 mm wit - 10x10 m10027 - Vito GmbH871275903489387127590348938712759034893
50103024Vitoglas 120 celband 12x6 mm grijs - 10x10 m10027 - Vito GmbH871275901150487127590115048712759011504
51103025Vitoglas 120 celband 15x2 mm grijs - 5x20 m10027 - Vito GmbH8712759011603871275901160387127590116034044041035573
52103026Vitoglas 120 celband 15x2 mm wit - 5x20 m10027 - Vito GmbH871275903491687127590349168712759034916
53103027Vitoglas 120 celband 15x3 mm grijs - 5x20 m10027 - Vito GmbH8712759011702871275901170287127590117024044041034293
54103028Vitoglas 120 celband 15x4 mm grijs - 5x20 m10027 - Vito GmbH8712759011801871275901180187127590118014044041035627
55103029Vitoglas 120 celband 15x4 mm wit - 5x20 m10027 - Vito GmbH871275903492387127590349238712759034923
56103031Vitoglas 120 celband 19x2 mm wit - 5x10 m10027 - Vito GmbH871275903494787127590349478712759034947
57103032Vitoglas 120 celband 19x3 mm grijs - 5x20 m10027 - Vito GmbH8712759034954871275903495487127590349544044041034316
58103033Vitoglas 120 celband 19x3 mm wit - 5x20 m10027 - Vito GmbH871275903827387127590382738712759038273
59104000Vitoglas 120 celband 6x2 mm grijs - 600 m10027 - Vito GmbH8712759020100871275902010087127590201008712759020155
60104001Vitoglas 120 celband 6x3 mm grijs - 420 m10027 - Vito GmbH8712759020209871275902020987127590202094044041019627
61104002Vitoglas 120 celband 6x4 mm grijs - 320 m10027 - Vito GmbH8712759020308871275902030887127590203084044041019641
62104003Vitoglas 120 celband 9x2 mm grijs - 600 m10027 - Vito GmbH8712759020407871275902040787127590204074044041019528
63104004Vitoglas 120 celband 9x3 mm grijs - 480 m10027 - Vito GmbH8712759020506871275902050687127590205064044041019542
64104005Vitoglas 120 celband 9x4 mm grijs - 360 m10027 - Vito GmbH8712759020605871275902060587127590206054044041019566
65104006Vitoglas 120 celband 9x5 mm grijs - 300 m10027 - Vito GmbH8712759020704871275902070487127590207044044041019580
66104007Vitoglas 120 celband 9x4 mm wit - 360 m10027 - Vito GmbH8712759025501871275902550187127590255014044041019559
67104008Vitoglas 120 celband 9x3 mm wit - 480 m10027 - Vito GmbH8712759025402871275902540287127590254024044041019535
68104009Vitoglas 120 celband 9x2 mm wit - 600 m10027 - Vito GmbH8712759025303871275902530387127590253034044041019511
69104010Vitoglas 120 celband 32x4 mm grijs - 900 m10027 - Vito GmbH8,71276E+128,71276E+128,71276E+12
70104012Vitoglas 120 celband 17x4 mm grijs - 1.050 m10027 - Vito GmbH871275907582787127590758278712759075827
71105000Coroplast AWX celband 9x3 mm wit - 560 m10093 - Coroplast Fritz Muller GmbH & Co KG105000
72105001Coroplast AWX celband 9x3 mm wit - 600 m10093 - Coroplast Fritz Muller GmbH & Co KG8712759040740871275904074087127590407408712759041969
73105002Coroplast AWX celband 9x3 mm zwart - 600 m10093 - Coroplast Fritz Muller GmbH & Co KG8712759040757871275904075787127590407578712759041105
74105003Coroplast AWX celband 9x4 mm wit - 450 m10093 - Coroplast Fritz Muller GmbH & Co KG8712759040801871275904080187127590408018712759041976
75105004Coroplast AWX celband 9x4 mm zwart - 450 m10093 - Coroplast Fritz Muller GmbH & Co KG8712759040818871275904081887127590408188712759041112
76105005Coroplast AWX celband 9x5 mm zwart afdekfolie - 300 m10093 - Coroplast Fritz Muller GmbH & Co KG871275906917887127590691788712759069178
77106000Coroplast AWX celband 6x2 mm wit - 15x25 m folie10093 - Coroplast Fritz Muller GmbH & Co KG8712759040689871275904068987127590406898712759041631
78106001Coroplast AWX celband 6x2 mm zwart - 15x25 m folie10093 - Coroplast Fritz Muller GmbH & Co KG8712759040696871275904069687127590406968712759041648
79106002Coroplast AWX celband 9x2 mm wit - 10x25 m folie10093 - Coroplast Fritz Muller GmbH & Co KG8712759040702871275904070287127590407028712759041655
80106003Coroplast AWX celband 9x2 mm zwart - 10x25 m folie10093 - Coroplast Fritz Muller GmbH & Co KG8712759040726871275904072687127590407268712759041679
81106004Coroplast AWX celband 9x3 mm wit - 10x25 m folie10093 - Coroplast Fritz Muller GmbH & Co KG8712759040764871275904076487127590407648712759041693
82106005Coroplast AWX celband 9x3 mm zwart - 10x25 m folie10093 - Coroplast Fritz Muller GmbH & Co KG8712759040788871275904078887127590407888712759041723
83106006Coroplast AWX celband 9x4 mm wit - 10x20 m folie10093 - Coroplast Fritz Muller GmbH & Co KG8712759040825871275904082587127590408258712759041747
84106007Coroplast AWX celband 9x4 mm zwart - 10x20 m folie10093 - Coroplast Fritz Muller GmbH & Co KG8712759040849871275904084987127590408498712759041761
85107000Coroplast AWX celband 9x2 mm wit - 10x25 m karton10093 - Coroplast Fritz Muller GmbH & Co KG8712759040719871275904071987127590407198712759041662
86107001Coroplast AWX celband 9x2 mm zwart - 10x25 m karton10093 - Coroplast Fritz Muller GmbH & Co KG8712759040733871275904073387127590407338712759041686
87107002Coroplast AWX celband 9x3 mm wit - 10x25 m karton10093 - Coroplast Fritz Muller GmbH & Co KG8712759040771871275904077187127590407718712759041716
88107003Coroplast AWX celband 9x3 mm zwart - 10x25 m karton10093 - Coroplast Fritz Muller GmbH & Co KG8712759040795871275904079587127590407958712759041730
89107004Coroplast AWX celband 9x4 mm wit - 10x20 m karton10093 - Coroplast Fritz Muller GmbH & Co KG8712759040832871275904083287127590408328712759041754
90107005Coroplast AWX celband 9x4 mm zwart - 10x20 m karton10093 - Coroplast Fritz Muller GmbH & Co KG8712759040856871275904085687127590408568712759041778
91107100Coroplast 4132 1000x2 mm white - 400 m10093 - Coroplast Fritz Muller GmbH & Co KG871275907836187127590783618712759078361
92107101Coroplast 4132 1000x2 mm anthracite - 400 m10093 - Coroplast Fritz Muller GmbH & Co KG871275907840887127590784088712759078408
93107102Coroplast 4133 1000x3 mm logroll white - 300 m10093 - Coroplast Fritz Muller GmbH & Co KG871275907838587127590783858712759078385
94107103Coroplast 4133 1000x3 mm logroll anthracite - 300 m10093 - Coroplast Fritz Muller GmbH & Co KG871275907841587127590784158712759078415
95107104Coroplast 4134 1000x4 mm logroll white - 200 m10093 - Coroplast Fritz Muller GmbH & Co KG871275907839287127590783928712759078392
96107105Coroplast 4134 1000x4 mm logroll anthracite - 200 m10093 - Coroplast Fritz Muller GmbH & Co KG871275907842287127590784228712759078422
97107106Coroplast 4202 F 1000x2 mm white - 200 m10093 - Coroplast Fritz Muller GmbH & Co KG871275907843987127590784398712759078439
98107107Coroplast 4202 F 1000x2 mm anthracite - 200 m10093 - Coroplast Fritz Muller GmbH & Co KG871275907844687127590784468712759078446
99107108Coroplast 4203 F 1000x3 mm white - 150 m10093 - Coroplast Fritz Muller GmbH & Co KG871275907845387127590784538712759078453
100107109Coroplast 4203 F 1000x3 mm anthracite - 150 m10093 - Coroplast Fritz Muller GmbH & Co KG871275907846087127590784608712759078460
101107110Coroplast 4204 F 1000x4 mm white - 100 m10093 - Coroplast Fritz Muller GmbH & Co KG871275907847787127590784778712759078477
102107111Coroplast 4204 F 1000x4 mm anthracite - 100 m10093 - Coroplast Fritz Muller GmbH & Co KG871275907848487127590784848712759078484
103107112Coroplast 4133 50x3 mm wit - 25 m10200 - Piotec Klebetechnik GmbH8712759078729871275907872987127590787298712759078736
104107113Coroplast 4133 60x3 mm wit - 25 m10200 - Piotec Klebetechnik GmbH8712759078743871275907874387127590787438712759078750
105107114Coroplast 4133 80x3 mm wit - 25 m10200 - Piotec Klebetechnik GmbH8712759078767871275907876787127590787678712759078774
106107115Coroplast 4133 100x3 mm wit - 25 m10200 - Piotec Klebetechnik GmbH8712759078781871275907878187127590787818712759078798
107107116Coroplast 4133 180x3 mm wit - 25 m10200 - Piotec Klebetechnik GmbH8712759078804871275907880487127590788048712759078811
108108000Kohler celband 9x2 mm grijs - 100 m10155 - Celdex B.V.8712759016004871275903674387127590367438712759036750
109108001Kohler celband 9x2 mm wit - 100 m10155 - Celdex B.V.8712759017001871275901700187127590170018712759017056
110108002Kohler celband 9x3 mm grijs - 100 m10155 - Celdex B.V.8712759016103871275901610387127590161038712759016158
111108003Kohler celband 9x3 mm grijs - 250 m10155 - Celdex B.V.8712759028106871275902810687127590281068712759028151
112108004Kohler celband 9x3 mm wit - 100 m10155 - Celdex B.V.8712759017100871275901710087127590171008712759017155
113108005Kohler celband 9x3 mm wit - 250 m10155 - Celdex B.V.8712759029103871275902910387127590291038712759029158
114108006Kohler celband 9x4 mm grijs - 100 m10155 - Celdex B.V.8712759018107871275901810787127590181078712759018152
115108007Kohler celband 9x4 mm grijs - 200 m10155 - Celdex B.V.8712759028205871275902820587127590282058712759028250
116108008Kohler celband 9x4 mm wit - 100 m10155 - Celdex B.V.8712759019104871275901910487127590191048712759019159
117108009Kohler celband 9x4 mm wit - 200 m10155 - Celdex B.V.8712759029202871275902920287127590292028712759029257
118108010Kohler celband zonder folie 9x4 mm zwart - 5x20 m10200 - Piotec Klebetechnik GmbH871275906918587127590691858712759069185
119108011Kohler celband zonder folie 9x4 mm zwart - 5 m10027 - Vito GmbH87127590691928712759069192
120108012Kohler celband zonder folie 17x4 mm grijs - 25 m10200 - Piotec Klebetechnik GmbH87127590755758712759075575
121108013Kohler celband zonder folie 32x4 mm grijs - 25 m10200 - Piotec Klebetechnik GmbH108013
122108014Kohler celband 9x1 mm wit - 450 m10200 - Piotec Klebetechnik GmbH8712759077623871275907762387127590776238712759077630
123108015Kohler celband 9x1 mm grijs - 450 m10200 - Piotec Klebetechnik GmbH8712759077647871275907764787127590776478712759077654
124108050Kowo AWX celband 9x3 mm wit - 10x10 m10200 - Piotec Klebetechnik GmbH8712759073366871275907336687127590733668712759073373
125108051Kowo AWX celband 9x3 zwart - 10x10 m10200 - Piotec Klebetechnik GmbH8712759073380871275907338087127590733808712759073397
126108052Kowo AWX celband 9x4 wit - 10x10 m10200 - Piotec Klebetechnik GmbH8712759073403871275907340387127590734038712759073410
127108053Kowo AWX celband 9x4 zwart - 10x10 m10200 - Piotec Klebetechnik GmbH8712759073427871275907342787127590734278712759073434
128108054Kowo AWX celband 9x3 wit - 100 m10200 - Piotec Klebetechnik GmbH8712759078934871275907893487127590789348712759078941
129108055Kowo AWX celband 9x3 zwart - 100 m10200 - Piotec Klebetechnik GmbH8712759078958871275907895887127590789588712759078965
130108056Kowo AWX celband 9x4 wit - 100 m10200 - Piotec Klebetechnik GmbH8712759078972871275907897287127590789728712759078989
131108057Kowo AWX celband 9x4 zwart - 100 m10200 - Piotec Klebetechnik GmbH8712759078996871275907899687127590789968712759079009
132109000PE celband P 20x3 mm grijs - 100 m10315 - Pilzecker's Industrie BV871275907221587127590722158712759072215
133109001PE celband P 20x4 mm grijs - 100 m10315 - Pilzecker's Industrie BV871275905505887127590550588712759055058
134109002PE celband P 20x5 mm grijs - 75 m10315 - Pilzecker's Industrie BV871275905504187127590550418712759055041
135109003PE celband P 9x2 mm wit - 400 m10315 - Pilzecker's Industrie BV871275906921587127590692158712759069215
136109004PE celband P 20x4 mm grijs - 5x20 m10315 - Pilzecker's Industrie BV871275905506587127590550658712759055065
137109005PE celband quick 20x4 mm grijs - 5x20 m10200 - Piotec Klebetechnik GmbH109005
138109500PE celband 17x3 mm zwart - 20 m10200 - Piotec Klebetechnik GmbH8712759067570871275906757087127590675708712759067587
139109501PE celband 32x3 mm zwart - 20 m10200 - Piotec Klebetechnik GmbH8712759067594871275906759487127590675948712759067600
140110000Vawa Glasfix 9x3 mm wit - 10x25 m10200 - Piotec Klebetechnik GmbH8712759061455871275906145587127590614558712759061462
141110001Vawa Glasfix 9x3 mm zwart - 10x25 m10200 - Piotec Klebetechnik GmbH8712759061479871275906147987127590614798712759061486
142110002Vawa Glasfix 9x4 mm wit - 10x20 m10200 - Piotec Klebetechnik GmbH8712759061493871275906149387127590614938712759061509
143110003Vawa Glasfix 9x4 mm zwart - 10 x 20 m10200 - Piotec Klebetechnik GmbH8712759061530871275906153087127590615308712759061547
144110006Vawa Glasfix 9x4 mm wit - 10x10 m10200 - Piotec Klebetechnik GmbHGLASFIX
145110007Vawa Glasfix 9x4 mm zwart - 10x10 m10200 - Piotec Klebetechnik GmbH110007
146111000Zwaluw PE celband 9x2 mm grijs - 600 m10238 - Vawa Nederland B.V.87115950143668711595014366
147111001Zwaluw PE celband 9x2 mm wit - 600 m10238 - Vawa Nederland B.V.87115950490098711595049009
148111002Zwaluw PE celband 9x3 mm grijs - 400 m10238 - Vawa Nederland B.V.871159501437387115950143738711595150859
149111003Zwaluw PE celband 9x3 mm wit - 100 m10238 - Vawa Nederland B.V.87127590706628712759070662
150111004Zwaluw PE celband 9x3 mm wit - 400 m10238 - Vawa Nederland B.V.871159504108987115950410898711595150842
151111005Zwaluw PE celband 9x4 mm grijs - 275 m10238 - Vawa Nederland B.V.871159501438087115950143808711595150873
152111006Zwaluw PE celband 9x4 mm wit - 275 m10238 - Vawa Nederland B.V.871159504115787115950411578711595150866
153112000PE 15x3 mm antraciet dzk fijncellig - 25 m10179 - EKI B.V.871275906923987127590692398712759069239
154112001PE 45x4 mm antraciet dzk fijncellig - 20 m10179 - EKI B.V.112001
155112002PE 15x4 mm antraciet dzk fijncellig - 20 m10179 - EKI B.V.871275905716887127590571688712759057168
156112003PE 10x2 mm wit dzk - 25 m10179 - EKI B.V.871275906925387127590692538712759069253
157112004PE 10x4 mm wit dzk - 20 m10179 - EKI B.V.112004
GTIN
Cells with Conditional Formatting
CellConditionCell FormatStop If True
H:HCell ValueduplicatestextNO
H:HCell ValueduplicatestextNO
G:GCell ValueduplicatestextNO
F:FCell ValueduplicatestextNO
E:ECell ValueduplicatestextNO
 
Upvote 0
The problem is being caused by the blank cells in columns E to G. The macro recognizes the blanks as not being equal to the other values in the same row. How do you want to handle the rows that have one or more blank cells in E:G?
 
Upvote 0
The problem is being caused by the blank cells in columns E to G. The macro recognizes the blanks as not being equal to the other values in the same row. How do you want to handle the rows that have one or more blank cells in E:G?
Say in row 23 or 155, there are values that look the same in all three columns, why is it happening there also. If a cell is empty it suppose to light up red so that is ok, because there is a difference between them all, I only don't get it why its also happening when there is a value in all of them. Do you?
 
Upvote 0

Forum statistics

Threads
1,215,055
Messages
6,122,902
Members
449,097
Latest member
dbomb1414

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