# Pay Period Total Hours from Weekly Schedule

#### KrisKiel

##### New Member
I am trying to have the number hours that employees work per pay period. Each day has a different number of hours and clients that we work with. Because each pay period ends on a different day of the week, I'm having trouble figuring out how to do this.

I would also like to have the number of hours employees work with each client per pay period. I have the weekly total formula for that but again, I'm having difficulty because of how pay period days change. The formula I used for the weekly client hours is:

[FONT=Verdana,Arial,Tahoma,Calibri,Geneva,sans-serif]=SUMIF(R2:R36,"B.T.",S2:S36)

where Column R has the client names, of which B.T. is one client, and Column S is the session lengths.
[/FONT]

### Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
If you have True dates in a column (say for Example Column C) of each record....

Check out the SUMPRODUCT() function. It can be used to issue criteria if a record falls BETWEEN 2 Dates (StartDate and EndDate) which you would have to provide.

For example you could in Two Cells A1: 1/05/2019 and B1: 1/15/2019

Code:
``=SUMPRODUCT((C2:C36>=A1)*(C2:C36<=B1)*(S2:S36))``

Replies
4
Views
180
Replies
4
Views
1K
Replies
1
Views
713
Replies
3
Views
200
Replies
1
Views
592

1,216,110
Messages
6,128,890
Members
449,477
Latest member
panjongshing

### 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.

### Which adblocker are you using?

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

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