Highlight nth duplicate in a list

t0azt

Board Regular
Joined
Aug 1, 2012
Messages
134
Hello,
I have a table from A1 to J76. Column E is for color and I can have a maximum of 15 of any given color. Is there a way to highlight the row of the 16th or more repetition of a color? Thanks!
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
I think this might be a good place to start:

=COUNTIF($E$2:$E2,E2)

The range $E$2:$E2 will get larger as it is filled down. So the resulting number will be the number of colours matching the one in that row above the current location.

You could then highlight the cell by using Conditional Formatting using that formula as a basis:
=COUNTIF($E$2:$E2,E2)>15
 
Upvote 0

Forum statistics

Threads
1,215,575
Messages
6,125,612
Members
449,238
Latest member
wcbyers

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