conditional formatting adjacent cells

G

Guest

I am looking for a formula that will look at the cell directly above it and
if it equals a certain value then it would add a conditional value. For
example:

Cell A1= Sat B1=Sun C1=Mon. ......G1=Fri
A2=1 B2=2 C2=3....... G2=5



I want this to shade Gray for Saturday and Sunday on a monthly basis. Where
A2 and B2 would be shaded Gray.


Thank You,
 
B

Bob Phillips

Use a formula of =OR(A1="Saturday",A1="Sunday"), and copy across

--

HTH

RP
(remove nothere from the email address if mailing direct)
 
G

Guest

Use formula is

=OR(A1="Sat",A1="Sun")

assuming that they are not ddd formatted dates, if so use

=WEEKDAY(A1>5)


Regards,


Peo Sjoblom
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top