I have a table listing multiple date ranges with two columns: "Start" and "End". These date ranges never overlap, except maybe the end date of one record with the start date of the next record.
I need to transform these data into a table listing every day of the year in one column, and whether or not a given date falls within one of the ranges listed in the other table.
Original table:
Start End
1-2 1-4
1-7 1-8
New table:
Date Within Range?
1-1 No
1-2 Yes
1-3 Yes
1-4 Yes
1-5 No
1-6 No
1-7 Yes
1-8 Yes
1-9 No
etc.
I'm sure there are plenty of simple solutions to retrieve the "Within Range" yes/no column, but I'm at a loss.
I'm in a long-distance relationship, and my girlfriend is a data analyst. I'm trying to graph the days we spend together, because she'll get a kick out of it. Any advice would be much appreciated!
I need to transform these data into a table listing every day of the year in one column, and whether or not a given date falls within one of the ranges listed in the other table.
Original table:
Start End
1-2 1-4
1-7 1-8
New table:
Date Within Range?
1-1 No
1-2 Yes
1-3 Yes
1-4 Yes
1-5 No
1-6 No
1-7 Yes
1-8 Yes
1-9 No
etc.
I'm sure there are plenty of simple solutions to retrieve the "Within Range" yes/no column, but I'm at a loss.
I'm in a long-distance relationship, and my girlfriend is a data analyst. I'm trying to graph the days we spend together, because she'll get a kick out of it. Any advice would be much appreciated!