How to calculate overlapping hours between departments

Jadezircon

New Member
Joined
Jul 25, 2013
Messages
11
Hello,

I have an employee working 37 hours per day by accident, (even though there are 24 hours) I used military time.

Column A is the month/day/year
Column B is the Department 1 In Time
Column C is the Department 1 Out Time

Altogether there are about 15 departments with In and Out times that overlap. Is there a formula to run across multiple In and Out (Column's B and C) that will calculate the overlap? I need the earliest time and the latest time, then the overlap hours, then apply the rate of pay.

Help!:eek:
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
Try something like this, maybe;

=(Max(C:C)-MIN(B:B))*24

This will give the number of hours difference between the earliest Start and the latest End.
 
Last edited:
Upvote 0
Thank you for taking the time to respond, I will give it a whirl and appreciate the experts on this site!
 
Upvote 0
If you can post an example of what you want it to look like, I'm sure we can work out the other parts to your query.
 
Upvote 0
Overlap hours at a Department store like JC Penny's, however there is no clock punch in or out.
I really need help on this one!
1
Somehow it appears that the employee wrote in wrong times on the timesheets for the many departments
I tried this formula
2
I need to calculate by department any overlapping hours.
=MIN(#REF!,#REF!)-MAX(#REF!,#REF!)
Going across the spreadsheet, does anyone recommend comparing two at a time or is there a formula to calculate and identify the overlap by department?
Department 1 In
Out Department 1
In Department 2
Out Department 2
Department 3 In
Department 3 Out
Department 4 In
Department 4 Out
Department 5 In
Department 5 Out
Date
1/1/2011
13:00
19:00
6:30
10:30
14:00
16:00
14:00
16:00
12:00
14:00
1/2/2011
13:00
19:00
16:00
6:00
12:00
18:00
0:00
5:00
16:00
6:00
1/3/2011
0:00
5:00
6:30
10:30
0:00
5:00
14:00
16:00
12:00
14:00
1/4/2011
16:00
6:00
0:00
5:00
14:00
16:00
0:00
5:00
12:00
14:00
1/5/2011
16:00
6:00
6:30
10:30
6:30
8:30
14:00
16:00
21:30
11:20
1/6/2011
0:00
5:00
6:30
10:30
16:00
6:00
16:00
6:00
12:00
14:00
Military Time
=time plus 12 hours
Midnight is 0:00
Noon is 12:00

<tbody>
</tbody>
 
Upvote 0
Department 1 InOut Department 1In Department 2Out Department 2Department 3 InDepartment 3 OutDepartment 4 InDepartment 4 OutDepartment 5 In Department 5 OutTotal Overlap Hours
DateHours
1/2/201113:0019:0016:006:0012:0018:000:005:0016:006:009Problem is overlapping many departments
Military TimeFor Example:On 1/2 started at 12:00 overlap at 13:00 to 18:00, and also 16:00 to 19:00 X 2 instances
=time plus 12 hours
Midnight is 0:00
Noon is 12:00

<tbody>
</tbody><colgroup><col><col><col><col><col><col span="3"><col><col><col><col><col></colgroup>
 
Upvote 0
Department 1 InOut Department 1In Department 2Out Department 2Department 3 InDepartment 3 OutDepartment 4 InDepartment 4 OutDepartment 5 In Department 5 OutTotal Overlap Hours
DateAnswer Hours
1/2/201113:0019:0016:006:0012:0018:000:005:0016:006:00 9Problem is overlapping many departments
Military TimeFor Example:On 1/2 started at 12:00 overlap at 13:00 to 18:00, and also 16:00 to 19:00 X 2 instances
=time plus 12 hours
Midnight is 0:00
Noon is 12:00

<tbody>
</tbody><colgroup><col><col><col><col><col><col><col><col span="4"><col><col></colgroup>
 
Upvote 0
Re: How to calculate overlapping hours this is complicated I need to find out the number of hours per day

Hello, this is a doozy, should I calculate department overlap by one department compared to another at a time or is there a formula for one row? Thanks, Jadezircon from Alaska:p:confused:
 
Upvote 0
The idea of my formula was sound. I'd just failed to realise which way the data was going. My teachers always said I should take more time to read the question!

Here you go;

=(MAX(C3,E3,G3,I3,K3)-MIN(B3,D3,F3,H3,J3))*24

IF you need to know how many hours are worked in each department, I'd be tempted to add extra column to the right of the out time. Then use a similar formula;

=(C2-B2)*24

Hope this helps.

If you only have 5 departments, place this in column L.
 
Upvote 0
Thank you so very much, why do I multiply by 24? Is that and imbedded question to meet the 24 hours in a day? Jade zircon in Alaska Thank you so much for responding!
 
Upvote 0

Forum statistics

Threads
1,214,651
Messages
6,120,739
Members
448,989
Latest member
mariah3

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