Duplicate Conditional Formatting, reset after range End

motilulla

Well-known Member
Joined
Feb 13, 2008
Messages
2,422
Office Version
  1. 2010
Hello,

I am looking a VBA or Formula, which can highlight duplicate in the range till "End" find in the column "J", and then start again as a new range till find next "End" in column "J"

For example...
1st range would be D6:H12 highlight duplicate in colour Cyan and row 12-font colour in Red

1st range would be D13:H18 highlight duplicate in colour Yellow and row 18-font colour in Red

To do this I have use formula and adjusted ranges manually, my query is that can be done with one Formula Or VBA automatically please help

For more detail image is attached

*ABCDEFGHIJKLMNO
1
2
3
4
5n1n2n3n4n5StatusRangeFormulaCondition
62434354246
72027344650Range D7:H12Formula =--ISNUMBER(MATCH(D7,D$6:D6,0))Fill Colour = Cyan
81117214850Range D7:H12Formula =IF($J7="End",1,0)End Row Font Colour = Red
9116384245
101117183944
111315303542
12615223744End
13310232744
1467383944Range D14:H18Formula =--ISNUMBER(MATCH(D14,D$13:D13,0))Fill Colour = Yellow
15419234143Range D14:H18Formula =IF($J14="End",1,0)End Row Font Colour = Red
16325274849
172023263033
18416213644End
19916181921
201417282939Range D20:H24Formula =--ISNUMBER(MATCH(D20,D$19:D19,0))Fill Colour = Cyan
21217222740Range D20:H24Formula =IF($J20="End",1,0)End Row Font Colour = Red
223132224042
2313162437
24818163537End
2527244346
261019234549Range D26:H32Formula =--ISNUMBER(MATCH(D26,D$25:D25,0))Fill Colour = Yellow
27416182544Range D26:H32Formula =IF($J26="End",1,0)End Row Font Colour = Red
281471050
291116243840
301336404350
3135344049
321327244243End
33132354548
3478242736Range D34:H39Formula =--ISNUMBER(MATCH(D34,D$33:D33,0))Fill Colour = Cyan
35620242550Range D34:H39Formula =IF($J34="End",1,0)End Row Font Colour = Red
3678192829
37717222740
38813263438
392728293443End
40
41
42

Thank you all.

I am using Excel 2000

Regards,
Moti
 

Attachments

  • CF Duplicate Range By Range.png
    CF Duplicate Range By Range.png
    70.8 KB · Views: 7
Glad it worked out.
Have a good day too. I'll try to enjoy what's left of mine :)
 
Upvote 0

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.

Forum statistics

Threads
1,224,505
Messages
6,179,151
Members
452,891
Latest member
JUSTOUTOFMYREACH

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