View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Prashanth KR Prashanth KR is offline
external usenet poster
 
Posts: 25
Default 4 conditional format

Hi,

In a range B1:AE1, I have formulaes which converts the date from B2:AE2 to
days i.e., €œSun€, €œMon€, €œTue€ and so on. I only change the first day of
every month in B2 where all dates gets auto-populated in the subsequent range
of cells.

Now I want to give more than 3 Conditional formatting which stands as below:
If B1=Sat, change color to RED
If C1=Sun, change color to BLUE
If A1=Holiday, change color to ORANGE
If A1=Working, Change color to GREEN

These formatting needs to be applied to the range D1:AE2. I could succeed in
doing the first 3 by using the CF method which is limited to only 3 at a
time. I am using Excel 2003.

I dont want the background to change to any default color in the range
D1:AE2 other than WHITE.

Please suggest a macro for the same. I shall be very grateful to you.

Thanks in advance,
Prashanth KR.