Employee and Supervisor #of hours worked together every week

spranger24

New Member
Joined
Jun 3, 2021
Messages
4
Office Version
  1. 2013
Platform
  1. Windows
Hello everyone, I'm hoping to tap into some expert knowledge that I do not have. :)

I'm looking to find a formula/formulas to calculate the number of hours each employee would work together with their supervisor each week. The example I'll give is below showing what I'd like to see.

The ultimate goal is to try and figure out the best supervisor for each employee based on their schedule.

The equals sign is used to designate days off in the "Days" column.

Example:

Employee 1 is assigned to Supervisor 1 - they would work 42.5 hours together each week since the employee works an 8.5 hour shift and the supervisor works a 9 hour shift.

Employee 2 is assigned to Supervisor 2 and they work 34 hours together each week.

If we assigned Employee 1 to supervisor 2, they would only work 25.5 hours together each week.

Hope this helps!

SUP 1SUP 2SUP 3
6AM-3PM6AM-3PM7AM-4PM
nameHoursStartStopDaysSupervisor==SMTWRFY==TWRFYSMT==
emp 106:00-14:3006:0014:30==SMTWRSUP 142.5025.5022.50
emp 206:30-15:3006:3015:30F==MTWRSUP 234.0034.0025.50

I appreciate any suggestions.

Thanks!
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
this is how it works for 1 day, so multiply with your number of days in a week
Map1
BCDEFGH
6sup1sup2sup3
76:006:007:00
815:0015:0016:00
9emp16:0014:308:308:307:30
10emp26:3015:308:308:308:30
Blad2
Cell Formulas
RangeFormula
F9:H10F9=MAX(0,MIN(F$8,$D9)-MAX(F$7,$C9))
 
Upvote 0

Forum statistics

Threads
1,214,415
Messages
6,119,377
Members
448,888
Latest member
Arle8907

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