Hello,
I haven't had any luck with macros to make this work, but I have a whole bunch of data that needs to be sorted based on a time frame of 7am-7pm each day. This is deemed as "occupied" hours, else it is deemed "unoccupied".
I have arranged the data as so below, but it's for quite a few months instead of just the one day....and it's based off data a minute apart. All listed in the sheet.
The end result is I want a column that has each date for unoccupied and occupied times, and the summized values from the 'difference' column on those dates. Hard part being is that the unocc values are separated into two section; one from 12am-7am, the other 7pm-12am...then it goes onto the next day.
End Result:
8-Sept-2016 Unocc 3930
8-Sept-2016 Occ 8021
9-Sept-2016 Unocc 4120
9-Sept-2016 Occ 8876
etc.
Is this possible? I am ok at writing my own vba stuff, but this one is proving to be difficult.
Date | Time | Difference |
8-Sep-2016 | 0:00 | |
8-Sep-2016 | 0:01 | 14.0 |
8-Sep-2016 | 0:02 | 15.0 |
8-Sep-2016 | 0:03 | 15.0 |
8-Sep-2016 | 0:04 | 31.0 |
8-Sep-2016 | 0:05 | 0.0 |
8-Sep-2016 | 0:06 | 15.0 |
8-Sep-2016 | 0:07 | 17.0 |
8-Sep-2016 | 0:08 | 13.0 |
8-Sep-2016 | 0:09 | 31.0 |
8-Sep-2016 | 0:10 | 0.0 |
8-Sep-2016 | 0:11 | 15.0 |
8-Sep-2016 | 0:12 | 15.0 |
8-Sep-2016 | 0:13 | 17.0 |
8-Sep-2016 | 0:14 | 28.0 |