conditional formatting

  • Thread starter Thread starter erregsec
  • Start date Start date
E

erregsec

I am not sure how to set up the conditional formatting for the following:

I have a group of employees who work with patient accts. So, in cell B2, B9,
B16, B23, B30, B37 and B44 is the number of patients that each employee
worked with that day. In cell B51 I have it set up to average all of the
numbers in those cells just listed. What I want to do is set up a conditional
format so if they are within five above or five below that average, their
cell turns one color. If they are more than five below the average the cell
turns a different color and if more than five above the average it turnes a
different color. That way they can see at a glance if they are working within
the average. Can someone help??
 
Select the cells (beginning with B2) and use the following formula for
the first condition :
=AND(B2<$B$51-5,B2>$B$51+5)
use the following formula for the second condition :
=OR(B2<$B$51-5,B2>$B$51+5)
HTH
Daniel
 
You can put any formula you have on the worksheet into a conditional format.
Instead of putting B51 in the conditional format you could use average in the
conditional formating

=AND(B2<Average(B2, B9, B16, B23, B30, B37, B44)-5,B2>Average(B2, B9, B16,
B23, B30, B37, B44)+5)
 
Back
Top