Conditional Formatting Alternative for duplicate values?

mattxu2006

New Member
Joined
Mar 25, 2011
Messages
37
Hello Gentlepeople
occasionally I want a deeper view into duplicate values.
I want to see not only what is duplicate, yes or no, but also which duplicates tie out.

I apply the conditional format for unique values to make the cells look normal and then the next rule is to apply the color scale to the same range. This gives all the duplicates with the same value the same color while differentiating between duplicates.

Is there an another way to do this with fewer steps?

Thanks
Matt
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
Just thought I would also pop in a solution I had from a few years back for finding duplicate rows. In the example below, my duplicates were in column A

Code:
=IF(COUNTIF($A$1:$A2,A2)>1,"I'm a duplicate with row A"&MATCH(A2,$A$2:A2,0),"Original")

It will mark the first "find" as original and any others as a duplicate (with the row number of the first match)

[table="width: 500, class: grid"]
[tr]
[td]Apples[/td]
[td]Original[/td]
[/tr]
[tr]
[td]Apples[/td]
[td]I'm a duplicate with row A1
[/td]
[/tr]
[tr]
[td]Pear[/td]
[td]Original[/td]
[/tr]
[tr]
[td]Apples[/td]
[td]I'm a duplicate with row A1
[/td]
[/tr]
[tr]
[td]Pear[/td]
[td]I'm a duplicate with row A2
[/td]
[/tr]
[tr]
[td]Apples[/td]
[td]I'm a duplicate with row A1
[/td]
[/tr]
[/table]
 
Upvote 0
Thanks bugmonsta,
While this does pretty much do what I asked I am looking to reduce steps.

I also want to keep color coding.
 
Upvote 0
Hi Again,

Have you had a look at this post on Mr Excel - JLGWhiz created some code that has 20 different colours in it that may work for you?
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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