I'm building a yearly shift roster and I'm trying to figure out how to apply the conditional formatting to show where the weekends are. Figuring out how to define the weekend is easy, the problem here is getting the conditional formatting to cooperate with that rule.
Here's how I have my table set up for anyone trying to replicate this:
Row 1 - =LEFT(TEXT(row 2,"aaa"),1)
this displays the single letter day of the week based on the date in row 2
Row 2 - The date, formatted to DD
. A2 starts with 1/1/2016
, B2 is =A2+1
and that is repeated all the way to column NB (=NA+1
)
The conditional formatting formula I'm using is =WEEKDAY($A$2,2)>5
, applied to $A$1:$A$15
. Now this works great for column A, but when trying to copy it over to column B the rule is still referencing column A (however it will apply it to column B). What I'm struggling to figure out is how to get the conditional formatting rule to look at all 365 columns and then apply the conditional formatting to that single column and not the entire range. The end result here would be that the weekdays have no fill applied while the weekends are shaded.