Highlight First Occurrence Across Multiple Columns and Rows

KarenH119

New Member
Joined
Feb 4, 2010
Messages
6
I am having trouble getting my conditional formatting to work. I am trying to highlight the first occurrence of value in a range of D19:I137.

I tried condition formatting duplicate value and it changed all occurrences to the same color. I also tried entering a formula but still can't get it to work.

I would like the first occurrence of a name to be in red and any duplicates in black. [TABLE="width: 500"]
<tbody>[TR]
[TD]James[/TD]
[TD]Linda[/TD]
[TD]Peggy[/TD]
[TD]Lisa[/TD]
[TD]Paula[/TD]
[/TR]
[TR]
[TD]Karen[/TD]
[TD]George[/TD]
[TD]Sara[/TD]
[TD]James[/TD]
[TD]Mike[/TD]
[/TR]
[TR]
[TD]Mike[/TD]
[TD]James[/TD]
[TD]Tom[/TD]
[TD]Karen[/TD]
[TD]Carrie[/TD]
[/TR]
[TR]
[TD]Tom[/TD]
[TD]Carrie[/TD]
[TD]Mike[/TD]
[TD]Sam[/TD]
[TD]George[/TD]
[/TR]
</tbody>[/TABLE]

Any suggestions would be great.
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
When dealing with BOTH rows and columns, I think you need to define what qualifies as "first".
Do you go across rows first, or down columns first?
For example, if there is the same name in B1 and A2, which one is considered to be the "first"?
 
Upvote 0
D column would be the first and the name would not repeat within the same row.

Maybe...

Select D19:I137 being D19 the active cell
Use this formula in Conditional Formatting
=COUNTIF($D$19:D$137,D19)=1
pick the format you want (Font color --> red)

M.
 
Upvote 0
you also posted your question in Microsoft Tech Forum Here, I guess there is a solution already provided to you.

While we do not prohibit Cross-Posting on this site, we do ask that you please mention you are doing so and provide links in each of the threads pointing to the other thread (see rule 13 here along with the explanation:
Forum Rules). This way, other members can see what has already been done in regards to a question, and do not waste time working on a question that may already be answered.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,175
Members
453,021
Latest member
Justyna P

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