Conditional Formatting Help

DushiPunda

Well-known Member
Joined
Nov 14, 2015
Messages
509
Hello,
Looking for some help with CF. My spreadsheet is used to track monthly exams for each of my workers. Here's a truncated layout:

ABCDE
1NameJanFebMarApr
2Worker1100100
100100
3Worker2
100100100
4Worker3
100100100
5Worker4100100100100
6Average100100100100

<tbody>
</tbody>

Average formula:
Code:
=IFERROR(AVERAGE(B2:B5),0)

Then I have this CF formula to highlight tests that don't have a score yet but only if at least one other score has been input for that month:

Applies to: B2:M15
Formula: =AND(B$6<>0,B2="")
Formatting: Red Fill

I want to expand this, or add another CF rule if required, to make the name of any worker who gets hit on the above CF rule red (red text).

So, looking at the table above. The two blank cells (D4 & E3) would currently be filled red with the above CF rule. With the new rule, Worker2 & Worker3 text would be changed to red. Hopefully that explains what I'm trying to do. Thank you!
 
Last edited:

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
Maybe...

Select A2:A5 and use this formula in CF
=COUNTIF($B2:$M2,">0")<>COUNTIF(B$6:M$6,">0")
pick the format you want

M.
 
Upvote 0
Thank you Marcelo. I was able to get my desired effect with two rules. I had to use two because there are other possible values in the cells (TRNG, Exempt, -) and some of that is pre-filled out for the entire year, which would result in a 12<>10 in those cases. Here's what I ended up doing:

#1 :
Applies to: A4:A15
Formula: =COUNTIF($B4:$M4,">0")+COUNTIF($B4:$M4,"TRNG")+COUNTIF($B4:$M4,"Exempt")+COUNTIF($B4:$M4,"-")<>COUNTIF(B$17:M$17,">0")
Format: Fill RED

#2 :
Applies to: A4:A15
Formula: =COUNTIF($B4:$M4,">0")+COUNTIF($B4:$M4,"TRNG")+COUNTIF($B4:$M4,"Exempt")+COUNTIF($B4:$M4,"-")=12
Format: No Format Set

Obviously the second rule comes before the first rule. Thanks again!
 
Last edited:
Upvote 0

Forum statistics

Threads
1,216,269
Messages
6,129,813
Members
449,538
Latest member
cookie2956

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