Conditional formatting

Tahir

Board Regular
Joined
Feb 25, 2006
Messages
57
Hi
I have two columns say A & B
col A contains Student Name and col B Father name.
I want to highlight Student name when it occurs more than once in col A.
And highlight Father name only when it occurs more than once but when it also have same Student name in col A appeared more than once.

aa ff1
bb ff2
cc ff3
bb ff4
dd ff5
cc ff6
bb ff2

The last entry should only be highlighted as both bb & ff2 already appear against each other.
hope this explains my problem.

Thank you.
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
Hi

Referring to your stated crieteria, in column A where you have several student names that are the same (ie bb appears 3 times, cc appears twice) - do you want all instances of these highlighted by the conditional formatting, or only the second/thir instance?
 
Upvote 0
Select columns A and B and apply this formula in conditional formatting

=(SUM(IF($A$1:$A1&"-"&$B$1:$B1=$A1:$A1&"-"&$B1:$B1,1))>1)*($A1<>"")
 
Upvote 0
Select columns A and B and apply this formula in conditional formatting

=(SUM(IF($A$1:$A1&"-"&$B$1:$B1=$A1:$A1&"-"&$B1:$B1,1))>1)*($A1<>"")
Hi

Thank you for the formula. Can you please amend it so that it will highlight all student & father names which appear more than once. (2nd and last entry in above example.)
 
Upvote 0

Forum statistics

Threads
1,214,787
Messages
6,121,569
Members
449,038
Latest member
Guest1337

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