Hours Worked Between Two Dates

bruntonomo

Board Regular
Joined
Jul 29, 2018
Messages
67
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
How would I go about creating a formula that looks at the attached spreadsheet and determines how many hours each person will work between two dates? In this case, the start date is Friday, July 3, 2020 and the end date is Thursday, October 1, 2020.
 

Attachments

  • WorkHours.png
    WorkHours.png
    23.8 KB · Views: 21

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
Are there any public holidays, etc. that should be taken into account?
 
Upvote 0
Here is one approach that uses two helper rows above the table (could be hidden), but it doesn't account for holidays. Note that I've used random numbers for most of the data.
Book1
ABCDEFGHIJ
1From -->7/3/202010/1/2020<-- To
2Day of wk6712345
3# days13131313131313
4FriSatSunMonTueWedThuWeekly TotalTotal hrs
5name10710863640520
6name210383012844572
7name301161811037481
8name4654859441533
9name5467084130390
10name6021111271144572
11name7411121209149637
12name8471071112455715
13name963201201134442
14name100128800129377
15name118779102144572
16name120400117325325
Sheet3
Cell Formulas
RangeFormula
B3:H3B3=INT((WEEKDAY($B$1-B$2)-$B$1+$C$1)/7)
I5:I16I5=SUM(B5:H5)
J5:J16J5=SUMPRODUCT($B$3:$H$3,$B5:$H5)
 
Upvote 0
Are there any public holidays, etc. that should be taken into account?

No holidays to worry about. We work holidays as if they were any other day. Only thing that changes is the pay rate for those days. But that doesn't factor in here.
 
Upvote 0

Forum statistics

Threads
1,214,590
Messages
6,120,423
Members
448,961
Latest member
nzskater

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