A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
To apply the conditional formatting to the whole column, you can select the entire column E by clicking on the column header. Then, go to the "Conditional Formatting" menu, select "New Rule," and enter the formula =TODAY()<=E1 into the formula field. The E1 is used instead of E2 because the conditional formatting formula is based on the top cell in the selected range.
Regarding the code assignment, the formula I provided earlier should work correctly based on the criteria you mentioned. Here it is again for reference:
=IF(E2=C2+28*365,"Code 1",IF(E2=D2+11*365,"Code 2",""))