Question : Conditional formatting to copy the format of another cell

Hi all
Is it possible to conditionally format a cell with a formula so that if the formula result is say X it formats the cell with a specified background color, but if the result is Y it formats the cell with the same background color as an adjacent cell. I could propably do this with VBA but I wondered if it can be done using standard conditional formatting?
In case you are wondering why - the spreadsheet has the days of the week (as M T W T F S S) in column A and the dates for each day of the year down column B. Weekends are highlighted in a different color. TODAY() is entered in another cell (X1)and the conditional formatting turns the background color red on the date cells if the cell's value = X1. But if the cell's value is not X1, I want the date cell to be highlighted if the day is S (Saturday or Sunday) and blank if it is a weekday.

Hope this makes sense.

Regards

Terry

Answer : Conditional formatting to copy the format of another cell

Terry, see the attached

Columns A and B are both conditionally formatted to show weekends in grey, but today's date will always show in red, taking precedence over the weekend formatting (I changed today's date in I1 to tomorrow to show what happens on a Saturday). Is that the sort of thing you wanted?

Note: I created this in Excel 2007 as that's all I have access to at the moment but I saved as an Excel 2003 file so it should work fine in that version......

regards, barry

 
conditional formatting
 
Random Solutions  
 
programming4us programming4us