Hi
At the moment I have the following formula - =
whereby there is a start date is column G, and an end date in column H, and its look at the column headers for dates to see if a date is between them. The formaula works fine, however, I have multiple datart/end dates in a row, and rather than keep writing the formula out, is there an easier win (there can be anywhere between 1 lot of start/end dates, to 15 start/end dates.
Hopefully below is correct, but essentially its any Start/End date combination that the dates fall between, - so in the date ranges if the last day of the month falls between them, I need a 1, and if not a 0. There will be no overlapping dates between different start/end date combinations.
All rows will have at least one start/end date.
At the moment I have the following formula - =
Excel Formula:
IF(AND($G$2<>"",R$1>$G2,R$1<$H2),1,0)
Hopefully below is correct, but essentially its any Start/End date combination that the dates fall between, - so in the date ranges if the last day of the month falls between them, I need a 1, and if not a 0. There will be no overlapping dates between different start/end date combinations.
All rows will have at least one start/end date.
Column G - StartDate 1 | Column H - End Date 1 | Column I - StartDate 2 | Column J - End Date 2 | Column K - Start Date 3 | Column L - End Date 3 | Column AA - 31/03/23 | Column AB - 30/04/23 | Column AC - 31/05/23 | Column AD - 30/06/23 | Column AE - 31/07/23 |
15/03/23 | 18/05/23 | 1 | 1 | 0 | 0 | 0 | ||||
15/03/23 | 02/04/23 | 05/04/23 | 02/05/23 | 1 | 1 | 0 | 0 | 0 | ||
15/04/23 | 01/05/23 | 01/06/23 | 01/07/23 | 0 | 1 | 0 | 1 | 0 |