conditional formatting - like reverse lookup

lezawang

Well-known Member
Joined
Mar 27, 2016
Messages
1,805
Office Version
  1. 2016
Platform
  1. Windows
Hi
I want to highlight "pass" in result column to different color but not only pass but student name that correspond to that pass

For example, cell F2 = pass should be highlighted to different color and also Mary1 as well (like reverse lookup)

I can use conditional formatting to highlight pass to different color but was not able to combine the name as well. Is that possible? Thank you very much.


[TABLE="class: grid, width: 384"]
<colgroup><col width="64" span="6" style="width:48pt"> </colgroup><tbody>[TR]
[TD="width: 64"]name[/TD]
[TD="width: 64"]test1[/TD]
[TD="width: 64"]test2[/TD]
[TD="width: 64"]test3[/TD]
[TD="width: 64"]average[/TD]
[TD="width: 64"]result[/TD]
[/TR]
[TR]
[TD]mary1[/TD]
[TD]77[/TD]
[TD]99[/TD]
[TD]65[/TD]
[TD]80[/TD]
[TD]pass[/TD]
[/TR]
[TR]
[TD]adam1[/TD]
[TD]80[/TD]
[TD]46[/TD]
[TD]68[/TD]
[TD]65[/TD]
[TD]pass[/TD]
[/TR]
[TR]
[TD]li1[/TD]
[TD]98[/TD]
[TD]34[/TD]
[TD]24[/TD]
[TD]52[/TD]
[TD]pass[/TD]
[/TR]
[TR]
[TD]sue1[/TD]
[TD]55[/TD]
[TD]35[/TD]
[TD]37[/TD]
[TD]42[/TD]
[TD]fail[/TD]
[/TR]
[TR]
[TD]jack1[/TD]
[TD]100[/TD]
[TD]86[/TD]
[TD]52[/TD]
[TD]79[/TD]
[TD]pass[/TD]
[/TR]
[TR]
[TD]linda1[/TD]
[TD]80[/TD]
[TD]58[/TD]
[TD]48[/TD]
[TD]62[/TD]
[TD]pass[/TD]
[/TR]
[TR]
[TD]mary2[/TD]
[TD]67[/TD]
[TD]10[/TD]
[TD]9[/TD]
[TD]29[/TD]
[TD]fail[/TD]
[/TR]
[TR]
[TD]adam2[/TD]
[TD]50[/TD]
[TD]66[/TD]
[TD]60[/TD]
[TD]59[/TD]
[TD]pass[/TD]
[/TR]
[TR]
[TD]li2[/TD]
[TD]42[/TD]
[TD]92[/TD]
[TD]2[/TD]
[TD]45[/TD]
[TD]fail[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Simply select A2:A whatever & F2:F whatever & use
=$F2="pass"
 
Upvote 0
That is really amazing. Thanks a lot for the help. I appreciate it.
 
Upvote 0

Forum statistics

Threads
1,223,886
Messages
6,175,194
Members
452,616
Latest member
intern444

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