Solved

Excel: Conditional Highlighting

Posted on 2015-02-09
9
57 Views
Last Modified: 2016-02-11
I have a list of numbers, many of which are duplicates.

Is there a way to highlight the duplicates, with different colors for the different sets of unique numbers?

Thanks in advance. Example attached.

Example-1.xlsx
0
Comment
Question by:Cactus1994
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
9 Comments
 

Author Comment

by:Cactus1994
ID: 40599755
I would prefer that no VBA or array solutions be offered ... I'm a relative rookie in those areas, and would rather use a formula. Thx.
0
 
LVL 4

Expert Comment

by:adez12
ID: 40599786
Excel already has built-in Conditional Formatting rules to highlight cells with duplicate values.  There is also a built-in Conditioning Formatting rule to highlight cells with unique values.  

But since you are requesting unique colors for all inputs, take a look at this website with helpful tips and tricks on finding duplicate values in Excel:  http://www.excel-easy.com/examples/find-duplicates.html
0
 

Author Comment

by:Cactus1994
ID: 40599857
I'm very familiar with the conditional formatting feature in Excel. What my question concerns is how to conditionally format duplicate values, with different colors highlighting matching sets of values, as per the spreadsheet example I attached. Thanks for the link, but it doesn't quite address my question.
0
PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

 
LVL 4

Expert Comment

by:adez12
ID: 40599872
If there are 500 matching sets, will you require 500 different colors?
0
 

Author Comment

by:Cactus1994
ID: 40599924
Lol. I'd only need 20-25 colors. But theoretically, if it works for 25, it should work for 500.
0
 
LVL 6

Accepted Solution

by:
Let's Go earned 500 total points
ID: 40600003
The attached file starts to do what you want.  You will need to choose the colours manually.

1. Column B tests whether there are any duplicate values.

2. Column C then allocates a new colour for each cell in column A with a duplicate value (note that there is a different formula in the first row of column C.

3. I have then set conditional formatting for two colours.  You can repeat this process for the number of colours you need.
Example-1.xlsx
0
 
LVL 4

Expert Comment

by:adez12
ID: 40600217
Ha sorry. I really need to read things more carefully.
0
 
LVL 33

Expert Comment

by:Rob Henson
ID: 40600357
Will you be working with one set at a time?

How about setting the CF to highlight all cells that are equal to the current active cell?

Thanks
Rob H
0
 

Author Closing Comment

by:Cactus1994
ID: 40601845
Worked perfectly. Exactly what I needed.

Thanks!
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question