Help with Conditional Formatting Please.

serge

Well-known Member
Joined
Oct 8, 2008
Messages
1,446
Office Version
  1. 2007
Platform
  1. Windows
I need to highlight numbers with different color when there is duplicate.

Row 3 : 1-3-7 All different digits so they will be in green.
Row 4 : 4-5-4 Duplicate of 4 so they will be in blue and 5 stay in green.
Row 5 : 8-8-8 Duplicate of 8 so they will be in red.

Thank you in advance.
Serge.

Excel Workbook
ABCDEFGHIJKLMN
1123
2
3137123456789
4454123456789
5888123456789
6
Sheet1
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
Set your conditional formatting for cell E3 using this formula:-
Code:
=COUNTIF($A3:$C3,E3)=1
with fill colour green. Use this formula:-
Code:
=COUNTIF($A3:$C3,E3)=2
with fill colour blue. Finally use this formula:-
Code:
=COUNTIF($A3:$C3,E3)=3
with fill colour red.

Test they work by altering the number of 1's in A3:C3, then copy the format only to E3:M5.
 
Upvote 0
Hi Ruddles,

Your formulas work fine, thank you very much for the help.

Regards.
Serge.
 
Upvote 0

Forum statistics

Threads
1,224,603
Messages
6,179,849
Members
452,948
Latest member
UsmanAli786

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