Highlight 1st Duplicate in Row

antialias401

Active Member
Joined
Aug 13, 2013
Messages
254
Hi Everyone,

I've searched to no avail.

I would like to highlight the 1st Duplicate Inside a Same Row:

ABCDEF
100100100250250250

<tbody>
</tbody>

VBA to do this would be Ideal, but I can also live with a Conditional Formatting formula.
=AND(COUNTIF($A1,$A:$A)>1 works on Columns, but I can't mod it to a row.

Any thoughts??
Thanks, I appreciate this forum greatly!
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
For row 1 try this CF rule, set format to red font.

Code:
=AND(COUNTIF($1:$1,A$1)>1,COUNTIF($A$1:A1,A1)=1)
 
Upvote 0

Forum statistics

Threads
1,215,059
Messages
6,122,918
Members
449,093
Latest member
dbomb1414

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