rows.com

Spotting duplicate data? Highlight the third instance pink, every later one orange

Are you struggling to highlight specific values in your spreadsheet while ensuring clarity?

3 min readMicrosoft Excel | Help & Support with your Formula, Macro, and VBA problems | A Reddit Community

There is a smarter way to think about conditional formatting than the one that tripped up this user. The goal is straightforward: highlight the first three instances of a duplicate value in pink, then switch to orange for every instance after that. The problem is that most spreadsheet tools treat conditional formatting as a set of independent rules rather than a single, coordinated logic. They evaluate each rule in isolation, which is why "John" turned entirely orange instead of showing the first three pink and the fourth orange.

The practical fix is to combine two conditional formatting rules that work together in the correct order. The first rule should target the third instance specifically, using a count formula like `=COUNTIF($C$1:$C1, $C1)=3`. This isolates the third occurrence and applies pink. The second rule should target the fourth and subsequent instances with `=COUNTIF($C$1:$C1, $C1)>=4`, applying orange. The order matters: place the pink rule above the orange rule so the spreadsheet stops evaluating once it finds a match. This is not about complex formulas, it is about understanding how the tool processes rules sequentially.

What this reveals is a broader truth about modern spreadsheets. The technology has grown more powerful, but the interface still expects you to think like a programmer rather than a person solving a problem. The user here knew exactly what they wanted visually: pink for the third, orange for the fourth onward. The tool should have made that intuitive. Instead, it forced them to debug a logic puzzle. That is not a failure of the user, it is a gap in the tool's design.

This is where AI-native spreadsheets can change the conversation. Instead of asking you to write and prioritize formulas, they can interpret your intent directly. You describe the outcome, "pink for the third, orange for the rest", and the system generates the correct rule set, orders it properly, and applies it. The user's frustration is a signal that the current approach is outdated. We should expect tools to meet us halfway, not demand we learn their internal logic. The solution exists, but it should not require a Reddit post to find it.

From Microsoft Excel | Help & Support with your Formula, Macro, and VBA problems | A Reddit Community

In column C I want a conditional format to highlight a value that appears 3 times to highlight the row in pink. I want to also have a conditional format that will highlight the 4th and subsequent instance of that value to be orange. What I have right now isn't working. In my chart "Adam" shows up three times and is pink. "John" shows up 4 times and is orange. I need John to show up pink up to the 3rd and then go orange on the 4th. So John would be pink in A2, A5 and A7 but then…

Read the original at Microsoft Excel | Help & Support with your Formula, Macro, and VBA problems | A Reddit Community