I have a spreadsheet with quarters listed along the top, there are tasks along the left hand side, within each task is a "start date" and a "max days"; "start date" + "max days" = "end date" (in other words, end date is not a date but a formula that returns a number. These tasks can last 14 days, or 360 days. Next to each task, under each quarter, I am to black out a cell IF the task will be worked on during that quarter.
I have created two "sub tables" to the right that return if the start date is within a quarter (easy) and when the end date is within a quarter (easy). The hard part is if the days being worked in are more than 60 and fall into quarter BETWEEN the start and end quarter. For the 360 example max time, above, there will be 4 cells blacked out (can could be 5 depending on the start/end date's relation to the quarter start/end) because that 360 day example will be worked on during four full quarters (and maybe a bit of one other on the start or the end). With my sub tables, I get the quarter that the task starts on, no problem. And, I can get the quarter that the task ends on, no problem. The problem is how in the world can I communicate to excel that if the task is worked on during any of these quarters in the middle (not the start or the end quarter), that excel should also return a "yes" (in this case an "X" and then conditional formatting blacks out the cell. Here is a bit of the example:
Duration 18Q3 18Q4 19Q1 19Q2 19Q3 19Q4 20Q1 20Q2 20Q3
Min Max D Start Date End Date 9/30 12/31 3/31 6/30 9/30 12/31 3/31 6/30 9/30
14 30 9/9/19 2019 10/8/19 X X
7 14 10/8/19 2019 10/21/19 X
14 240 10/21/19 2019 6/16/20 X X
In the above example, where max days are 240, I got an x in the 19Q4 and 20Q2 but not the 20Q1. This is the issue.
FYI, max days are in col I, Start Date in Col J, End Date in Col L, 18Q3 in Column M. This is a 5-year plan doc so dates go out to 23Q4.
Bookmarks