I'm using the custom formula:
=countif(3:3,C3)>1
To text-color duplicate cells, but both a/a and b/b are coloured the same. Is it possible to have each unique set of duplicates be a different color?
No, you can't do this, the only option is to use script. I suggest using Gradient Conditional Formatting in another column.
Paste column next to your column with data, column B in this sample. Suppose, the data column is A, then paste this formula in cell B2:
=ArrayFormula(IFERROR(--(countif(A:A,A2:A)>1)*MATCH(A2:A,A:A),0))
It will expend automatically.
Make custom number format in column B to make numbers invisible. Set your number format to:
;;;
Make Conditional Formatting for column B, select gradient and choose appropriate colours:
The result is neat column with conditionally coloured duplicates, each in it's own colour. You may additionally filter column B to select each group of duplicates (but need to make them visible).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With