Hello
In sheet1 i have data in column A through I as below:
i want to loop through the rows and breakdown a single row into mutiple rows, these will be based on half hourly intervals based on the start and stop date/time in Column B and C but will also take into account the date and times in Column F to I (which will always fall into the start and stop range).
So the row above would be broken down as below (with sheet2 as the outout):
So the original 1 line is broken into 77 lines.
Can anyone help. I am struggling.
In sheet1 i have data in column A through I as below:
Excel 2016 (Mac) 32 bit | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | |||
1 | name | Start | Stop | Data A | Data B | Point A | Point B | Point C | Point D | ||
2 | XYZ | 01/09/16 04:15:00 | 02/09/16 13:25:00 | 1234 | 6789 | 01/09/16 04:35:00 | 01/09/16 04:43:00 | 02/09/16 12:27:00 | 02/09/16 12:39:00 | ||
3 | |||||||||||
Sheet1 |
i want to loop through the rows and breakdown a single row into mutiple rows, these will be based on half hourly intervals based on the start and stop date/time in Column B and C but will also take into account the date and times in Column F to I (which will always fall into the start and stop range).
So the row above would be broken down as below (with sheet2 as the outout):
Excel 2016 (Mac) 32 bit | |||||||||
---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | |||
4 | Start | Stop | Data A | Data B | |||||
5 | XYZ | 01/09/16 04:15:00 | 01/09/16 04:30:00 | 1234 | 6789 | ||||
6 | XYZ | 01/09/16 04:30:00 | 01/09/16 04:35:00 | 1234 | 6789 | values in point A and point B used here | |||
7 | XYZ | 01/09/16 04:35:00 | 01/09/16 04:43:00 | 1234 | 6789 | ||||
8 | XYZ | 01/09/16 04:43:00 | 01/09/16 05:00:00 | 1234 | 6789 | ||||
9 | XYZ | 01/09/16 05:00:00 | 01/09/16 05:30:00 | 1234 | 6789 | ||||
10 | XYZ | 01/09/16 05:30:00 | 01/09/16 06:00:00 | 1234 | 6789 | ||||
11 | XYZ | 01/09/16 06:00:00 | 01/09/16 06:30:00 | 1234 | 6789 | ||||
12 | XYZ | 01/09/16 06:30:00 | 01/09/16 07:00:00 | 1234 | 6789 | ||||
13 | XYZ | 01/09/16 07:00:00 | 01/09/16 07:30:00 | 1234 | 6789 | Large block of half hours hidden | |||
14 | XYZ | 01/09/16 07:30:00 | 01/09/16 08:00:00 | 1234 | 6789 | ||||
15 | XYZ | 01/09/16 08:00:00 | 01/09/16 08:30:00 | 1234 | 6789 | ||||
16 | XYZ | 01/09/16 08:30:00 | 01/09/16 09:00:00 | 1234 | 6789 | ||||
17 | XYZ | 01/09/16 09:00:00 | 01/09/16 09:30:00 | 1234 | 6789 | ||||
68 | XYZ | 02/09/16 10:30:00 | 02/09/16 11:00:00 | 1234 | 6789 | ||||
69 | XYZ | 02/09/16 11:00:00 | 02/09/16 11:30:00 | 1234 | 6789 | ||||
70 | XYZ | 02/09/16 11:30:00 | 02/09/16 12:00:00 | 1234 | 6789 | ||||
71 | XYZ | 02/09/16 12:00:00 | 02/09/16 12:27:00 | 1234 | 6789 | values in point C and point D used here | |||
72 | XYZ | 02/09/16 12:27:00 | 02/09/16 12:30:00 | 1234 | 6789 | ||||
73 | XYZ | 02/09/16 12:30:00 | 02/09/16 12:39:00 | 1234 | 6789 | ||||
74 | XYZ | 02/09/16 12:39:00 | 02/09/16 13:00:00 | 1234 | 6789 | ||||
75 | XYZ | 02/09/16 13:00:00 | 02/09/16 13:30:00 | 1234 | 6789 | ||||
76 | XYZ | 02/09/16 13:30:00 | 02/09/16 14:00:00 | 1234 | 6789 | ||||
77 | XYZ | 02/09/16 14:00:00 | 02/09/16 14:30:00 | 1234 | 6789 | ||||
78 | XYZ | 02/09/16 14:30:00 | 02/09/16 15:00:00 | 1234 | 6789 | ||||
79 | XYZ | 02/09/16 15:00:00 | 02/09/16 15:30:00 | 1234 | 6789 | ||||
80 | XYZ | 02/09/16 15:30:00 | 02/09/16 16:00:00 | 1234 | 6789 | ||||
81 | XYZ | 02/09/16 16:00:00 | 02/09/16 16:25:00 | 1234 | 6789 | ||||
Sheet1 |
So the original 1 line is broken into 77 lines.
Can anyone help. I am struggling.