I'm trying to create a spreadsheet that displays shaded cells based on whether a task falls within a date range. Also the date range is being calculated so it is a formula and not just a date value. The date range is the result of a table above where I can change a project's tasks duration in order to see where it falls within the calendar year. Example: Shade cell C2 if cell C1 (row 1 contains the static dates, like a weekly calendar) is equal or greater than the date in cell A2 (my start date that is based on a formula) and is equal or less than the date in B2 (my end date that is based on a formula). If it does not fall within the range then do not shade. I would then repeat this for the next cell D2 and E2 and across the row to the end of the year. I am using Excel 2007
I forgot one important detail in the above: C1 is a date representing the start of the week and the next cell, C2 is the start of the next week. If I use days vs weeks your solution works well but I really want to display the week vs each day to reduce the number of columns needed. Is there a way to alter the formula so that it says shade C2 if the start (A2) and end (B2) dates fall within the date range of C1 through D1? To simplify I'm really just trying to shade all the weeks a task is being performed VS the days.
Bookmarks