conditional formatting feature

AMIRD

New Member
Joined
Mar 20, 2016
Messages
3
Hello.
I have a table with 4 columns A B C D.
The table represents names of students (column A), and three desired friends in class (columns B,C,D).
For each student, I would like to color in blue cells of friends who are with him in class, and in red friends who are not with him in class.

Can anyone tell me what is the correct conditional formatting formula for this?
Thank you so much!

For example for this table:
[TABLE="align: right"]
<tbody>[TR]
[TD]D
[/TD]
[TD]C
[/TD]
[TD]B
[/TD]
[TD]A
[/TD]
[/TR]
[TR]
[TD]JESSICA
[/TD]
[TD]RUTH
[/TD]
[TD]DAVID
[/TD]
[TD]TOM
[/TD]
[/TR]
[TR]
[TD]RAULI
[/TD]
[TD]DAN
[/TD]
[TD]STEPHEN
[/TD]
[TD]MARK
[/TD]
[/TR]
[TR]
[TD]TOM
[/TD]
[TD]MIKE
[/TD]
[TD]OFER
[/TD]
[TD]RUTH
[/TD]
[/TR]
[TR]
[TD]STEPHEN
[/TD]
[TD]RUTH
[/TD]
[TD]TOM
[/TD]
[TD]JOHN
[/TD]
[/TR]
[TR]
[TD]JOHN
[/TD]
[TD]DAVID
[/TD]
[TD]RUTH
[/TD]
[TD]MIKE
[/TD]
[/TR]
</tbody>[/TABLE]

should look like this:
[TABLE="align: right"]
<tbody>[TR]
[TD]D
[/TD]
[TD]C
[/TD]
[TD]B
[/TD]
[TD]A
[/TD]
[/TR]
[TR]
[TD]JESSICA
[/TD]
[TD]RUTH
[/TD]
[TD]DAVID
[/TD]
[TD]TOM
[/TD]
[/TR]
[TR]
[TD]RAULI
[/TD]
[TD]DAN
[/TD]
[TD]STEPHEN
[/TD]
[TD]MARK
[/TD]
[/TR]
[TR]
[TD]TOM
[/TD]
[TD]MIKE
[/TD]
[TD]OFER
[/TD]
[TD]RUTH
[/TD]
[/TR]
[TR]
[TD]STEPHEN
[/TD]
[TD]RUTH
[/TD]
[TD]TOM
[/TD]
[TD]JOHN
[/TD]
[/TR]
[TR]
[TD]JOHN
[/TD]
[TD]DAVID
[/TD]
[TD]RUTH
[/TD]
[TD]MIKE
[/TD]
[/TR]
</tbody>[/TABLE]


I need it to work for both cases, in which cells that appear family name first AND for cells in which the private name appears before family name.

(I would like to color the cell's background and not the text's color, but I just don't manage to show it here at the example).

Thank you very very much!
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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