Calculating Total Minutes Spent with Overlapping Times

Flip512

New Member
Joined
Sep 9, 2009
Messages
2
Hello,

I have a large range of data, with each row representing an individual task. Much of the range is populated with external data. Typically, each task takes anywhere from several minutes to several hours, and there are a number of tasks performed each day, sometimes simultaneously.

The three columns relevant to my problem are A) Start Time, B) End Time, and C) Minutes. The minutes column represents the total amount of time spent on an individual task. Because the tasks frequently overlap in time, I am having trouble calculating the daily time spent on all tasks. Here is some example data:

<table style="border-collapse: collapse; width: 214pt;" border="0" cellpadding="0" cellspacing="0" width="284"><col style="width: 86pt;" width="114"> <col style="width: 80pt;" width="106"> <col style="width: 48pt;" width="64"> <tbody><tr style="height: 12.75pt;" height="17"> <td class="xl68" style="height: 12.75pt; width: 86pt;" height="17" width="114">Start Time</td> <td class="xl68" style="width: 80pt;" width="106">End Time</td> <td class="xl68" style="width: 48pt;" width="64">Min</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl67" style="height: 12.75pt; width: 86pt;" align="right" height="17" width="114">8/11/09 17:01</td> <td class="xl67" style="width: 80pt;" align="right" width="106">8/11/09 19:03</td> <td style="width: 48pt;" align="right" width="64">116</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl67" style="height: 12.75pt; width: 86pt;" align="right" height="17" width="114">8/11/09 17:16</td> <td class="xl67" style="width: 80pt;" align="right" width="106">8/11/09 17:44</td> <td style="width: 48pt;" align="right" width="64">25</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl67" style="height: 12.75pt; width: 86pt;" align="right" height="17" width="114">8/11/09 17:51</td> <td class="xl67" style="width: 80pt;" align="right" width="106">8/11/09 18:07</td> <td style="width: 48pt;" align="right" width="64">12</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl67" style="height: 12.75pt; width: 86pt;" align="right" height="17" width="114">8/11/09 18:36</td> <td class="xl67" style="width: 80pt;" align="right" width="106">8/11/09 20:21</td> <td style="width: 48pt;" align="right" width="64">102</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl67" style="height: 12.75pt; width: 86pt;" align="right" height="17" width="114">8/11/09 19:13</td> <td class="xl67" style="width: 80pt;" align="right" width="106">8/11/09 20:10</td> <td style="width: 48pt;" align="right" width="64">58</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl67" style="height: 12.75pt; width: 86pt;" align="right" height="17" width="114">8/11/09 20:16</td> <td class="xl67" style="width: 80pt;" align="right" width="106">8/11/09 21:37</td> <td style="width: 48pt;" align="right" width="64">81</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl67" style="height: 12.75pt; width: 86pt;" align="right" height="17" width="114">8/12/09 18:36</td> <td class="xl67" style="width: 80pt;" align="right" width="106">8/12/09 20:45</td> <td style="width: 48pt;" align="right" width="64">123</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl67" style="height: 12.75pt; width: 86pt;" align="right" height="17" width="114">8/12/09 18:46</td> <td class="xl67" style="width: 80pt;" align="right" width="106">8/12/09 19:08</td> <td style="width: 48pt;" align="right" width="64">22</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl67" style="height: 12.75pt; width: 86pt;" align="right" height="17" width="114">8/12/09 19:56</td> <td class="xl67" style="width: 80pt;" align="right" width="106">8/12/09 20:11</td> <td style="width: 48pt;" align="right" width="64">15</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl67" style="height: 12.75pt; width: 86pt;" align="right" height="17" width="114">8/12/09 20:16</td> <td class="xl67" style="width: 80pt;" align="right" width="106">8/12/09 22:04</td> <td style="width: 48pt;" align="right" width="64">104</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl67" style="height: 12.75pt; width: 86pt;" align="right" height="17" width="114">8/12/09 20:58</td> <td class="xl67" style="width: 80pt;" align="right" width="106">8/12/09 23:16</td> <td style="width: 48pt;" align="right" width="64">139</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl67" style="height: 12.75pt; width: 86pt;" align="right" height="17" width="114">8/12/09 21:25</td> <td class="xl67" style="width: 80pt;" align="right" width="106">8/12/09 21:27</td> <td style="width: 48pt;" align="right" width="64">2</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl67" style="height: 12.75pt; width: 86pt;" align="right" height="17" width="114">8/12/09 21:30</td> <td class="xl67" style="width: 80pt;" align="right" width="106">8/12/09 21:40</td> <td style="width: 48pt;" align="right" width="64">11</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl67" style="height: 12.75pt; width: 86pt;" align="right" height="17" width="114">8/12/09 22:25</td> <td class="xl67" style="width: 80pt;" align="right" width="106">8/12/09 23:19</td> <td style="width: 48pt;" align="right" width="64">54</td> </tr> </tbody></table>

I'm at a loss for what to do to get the correct results here, especially because the number of cells overlapped and degree of overlap between two cells vary widely. Taking the bottom four rows as an example, adding the Minutes column gives 206 minutes, whereas I need to know the total time spent performing tasks - 141 minutes (20:58 through 23:19). Taking the earliest start time and last end time is insufficient because there are often several breaks between tasks.

Any help would be greatly appreciated.
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
141 was just for the bottom four cells. Tasks were being performed from 20:58 continuously through 23:19 = two hours and 21 minutes = 141 minutes.

I know that occasionally the minutes column is off by a minute due to rounding in other programs. This isn't a huge concern for me.
 
Upvote 0

Forum statistics

Threads
1,215,800
Messages
6,126,981
Members
449,351
Latest member
Sylvine

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top