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.
 

Some videos you may like

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.

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

Watch MrExcel Video

Forum statistics

Threads
1,122,962
Messages
5,599,065
Members
414,281
Latest member
Engjamal2021

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