Hello!
I am working with the logging of shift reports on a construction site, and later i would like to use the data for statistical analysis. I have included a quick example of how my sheet is set up in excel, see the attached file. As you can see each activity consists of one or more intervals where work is performed.
I want excel to count the amount of cells (time spent (1 cel=5min)) in each interval during the entire timeframe, and for each activity.
So for instance, for the activity "sleeping", we have 4 intervals. In this case it is desired to make excel return something like [6 3 6 6], where the first value of 6 refers to the amount of cells in the first interval, during the timeframe for that activity (moving from left). The second value of 3 refers to the amount of cells in the second interval, etc...Dont mind the cell colors, they are irrelevant in this case, and i want to count all the intervals regardless of their color.
I have very limited expirience with excel, and im not even sure if this can be done. Further, i dont really know in what format it is best to get the desired output, the matrix form that i used in the example above is the first thing that came into my head. But what i can say, is that i need to be able to refer to these numbers as individual entries later on. And the amount of intervals for each activity may in some cases be quite large, since there could often be quite a few intervals spanning only 1-3 cells (=5-15 mins).
Might be worth noting that the cells within the timeframe are conditionally formatted to show blue color for the value of 1, and red for the value of 2. Its the most efficient way i found to color cells.
I hope i have supplied all the necessary details
Thanks in advance for your time!
Bookmarks