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

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.

Richard Schollar

MrExcel MVP
Joined
Apr 19, 2005
Messages
23,707
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?
 

barry houdini

MrExcel MVP
Joined
Mar 23, 2005
Messages
20,825
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<>"")
 

Tahir

Board Regular
Joined
Feb 25, 2006
Messages
57
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.)
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,163,559
Messages
5,832,488
Members
430,136
Latest member
Asir Jefferson

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
Top