# CF help.

#### serge

##### Well-known Member
Hi everyone,

I'm looking for a CF formula that will highlight duplicate per row and if it is possible to have 2 color to differentiate 2 different duplicate if not one color.See table.
Thank you.

### Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.

#### Fluff

##### MrExcel MVP, Moderator
+Fluff New.xlsm
ABCDEF
1
22527242724
32027272523
42328232221
52821302927
62730272324
72525203023
82929242029
92122243021
102721253030
112722252527
12
Main
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A2:E11Expression=COUNTIFS(\$A2:\$E2,A2)>1textNO

#### serge

##### Well-known Member
Thank you Fluff, it works perfect, to bad I can't get 2 colors, I appreciate your help.
Serge.

#### Fluff

##### MrExcel MVP, Moderator
Pretty sure I've seen it done with two colours, but can't remember how.

#### Fluff

##### MrExcel MVP, Moderator

Got it.
+Fluff New.xlsm
ABCDE
1
22527242724
32027272523
42328232221
52821302927
62730272324
72525203023
82929242029
92122243021
102721253030
112722252527
Main
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A2:E11Expression=AND(MODE(\$A2:\$E2)<>A2,COUNTIFS(\$A2:\$E2,A2)>1)textNO
A2:E11Expression=COUNTIFS(\$A2:\$E2,A2)>1textNO

#### serge

##### Well-known Member
You are a Genius Thank you so much.
Serge.

#### Fluff

##### MrExcel MVP, Moderator
You're welcome & thanks for the feedback.

Replies
2
Views
34
Replies
9
Views
94
Replies
4
Views
63
Replies
2
Views
147
Replies
12
Views
88

1,127,222
Messages
5,623,470
Members
415,973
Latest member
johnemaile

### 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.

### Which adblocker are you using?

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

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