Highlight duplicates/groups different colors

W

whatever

Hi i want to show , different color for each group i have 2003 excel
can i use conditional formatting?


123 green
123 green
456 red
456 red
888 green
999 red
999 red
 
M

Ms-Exl-Learner

I assume that your data is in Column-A. Place the cursor in A1 cell
and press Cntrl+Spacebar. Now the total column-A will be getting
selected and the A1 will be the Active cell (Active Cell will have a
white Background after selection).

Format>>Conditional Formatting>>Condition 1>>Formula Is>>
=COUNTIF(A:A,A1)=1
Then Click the Format command button and choose your desired Font and
Pattern colour.
This will highlight the Non Duplicate Values.

Press Add Command button to add another Condition
Condition 2>>Formula Is>>
=COUNTIF(A:A,A1)>1
Then Click the Format command button and choose your desired Font and
Pattern colour.
This will highlight the Duplicate Values.

Click Ok…

Hope it’s clear to you.
 
W

whatever

Hi thanks your solution ..i am aware of..it is not what i asked..
your solution ...does this

this is what i want i challenge anyone to do this in a conditional
format formula..? any gurus out there..?
 
H

Hans Terkelsen

whatever said:
Hi i want to show , different color for each group i have 2003 excel
can i use conditional formatting?


123 green
123 green
456 red
456 red
888 green
999 red
999 red

Hello.

Try this:
A1 green, but conditionally red using the formula
=MOD(SUM(--(A1:A10<>A2:A11)),2)

The color sequence will start from the bottom,
but maybe you can tweak the formula so that it starts from the top, if desired.
I could not.

Hans T.
 
H

Hans Terkelsen

Hans Terkelsen said:
Hello.

Try this:
A1 green, but conditionally red using the formula
=MOD(SUM(--(A1:A10<>A2:A11)),2)

The color sequence will start from the bottom,
but maybe you can tweak the formula so that it starts from the top, if desired.
I could not.

Hans T.

Hi again, forgot to mention that the format should be copied down,
using the format painter. Hans T.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top