Sum multiple cells in a range to calculate overtime per week per staff

Brook Trout

New Member
Joined
Jun 20, 2017
Messages
1
I have over 100,00 lines of timesheet entries in Excel and would like to calculate how much overtime per week our team has done and to check the seasonality of the overtime. This is so I can try to make a business case to hire more staff.

Below is an example of our data. Most days have more than one time entry for each staff member. I have changed the date range to number value to hopefully make it easier to do the search for the range, but also found it easier to populate the date column. I'd like to have the names along a row at the top and the dates in a column along the left side. I can hide the numeric date and leave the calendar date there. It's for multiple years, so I will break up for each year.

My concept for the formula is

=(formula for summing multiple cells in a range per staff)-35

so I can get the overtime per week. I'm just not sure how to effectively sum multiple cells for a range for each staff.


Sample of current data:

[TABLE="width: 239"]
<tbody>[TR]
[TD]Name
[/TD]
[TD]Date
[/TD]
[TD]Time Spent
[/TD]
[/TR]
[TR]
[TD]Ada


[/TD]
[TD]42005


[/TD]
[TD]7.00


[/TD]
[/TR]
[TR]
[TD]Alan


[/TD]
[TD]42005


[/TD]
[TD]7.00


[/TD]
[/TR]
[TR]
[TD]Amy


[/TD]
[TD]42005


[/TD]
[TD]7.00


[/TD]
[/TR]
[TR]
[TD]Doreen


[/TD]
[TD]42005


[/TD]
[TD]7.00


[/TD]
[/TR]
[TR]
[TD]Ed


[/TD]
[TD]42005


[/TD]
[TD]7.00


[/TD]
[/TR]
[TR]
[TD]Barb


[/TD]
[TD]42005


[/TD]
[TD]7.00


[/TD]
[/TR]
[TR]
[TD]Helen


[/TD]
[TD]42005


[/TD]
[TD]7.00


[/TD]
[/TR]
[TR]
[TD]Joanne


[/TD]
[TD]42005


[/TD]
[TD]7.00


[/TD]
[/TR]
[TR]
[TD]John


[/TD]
[TD]42005


[/TD]
[TD]7.00


[/TD]
[/TR]
[TR]
[TD]Lisa


[/TD]
[TD]42005


[/TD]
[TD]7.00


[/TD]
[/TR]
[TR]
[TD]Manuel


[/TD]
[TD]42005


[/TD]
[TD]7.00


[/TD]
[/TR]
[TR]
[TD]Mary


[/TD]
[TD]42005


[/TD]
[TD]7.00


[/TD]
[/TR]
[TR]
[TD]Rose


[/TD]
[TD]42005


[/TD]
[TD]7.0


[/TD]
[/TR]
[TR]
[TD]Pita


[/TD]
[TD]42005


[/TD]
[TD]7.00


[/TD]
[/TR]
[TR]
[TD]Sveta


[/TD]
[TD]42005


[/TD]
[TD]7.00


[/TD]
[/TR]
[TR]
[TD]Ada


[/TD]
[TD]42006


[/TD]
[TD]6.50


[/TD]
[/TR]
[TR]
[TD]Ada


[/TD]
[TD]42006


[/TD]
[TD]1.00


[/TD]
[/TR]
[TR]
[TD]Alan


[/TD]
[TD]42006


[/TD]
[TD]7.00


[/TD]
[/TR]
[TR]
[TD]Amy


[/TD]
[TD]42006


[/TD]
[TD]8.00


[/TD]
[/TR]
[TR]
[TD]Doreen


[/TD]
[TD]42006


[/TD]
[TD]7.50


[/TD]
[/TR]
[TR]
[TD]Ed


[/TD]
[TD]42006


[/TD]
[TD]3.00


[/TD]
[/TR]
[TR]
[TD]Ed


[/TD]
[TD]42006


[/TD]
[TD]3.50


[/TD]
[/TR]
[TR]
[TD]Ed


[/TD]
[TD]42006


[/TD]
[TD]1.00


[/TD]
[/TR]
[TR]
[TD]Barb


[/TD]
[TD]42006


[/TD]
[TD]2.50


[/TD]
[/TR]
[TR]
[TD]Barb


[/TD]
[TD]42006


[/TD]
[TD]1.00


[/TD]
[/TR]
[TR]
[TD]Barb


[/TD]
[TD]42006


[/TD]
[TD]2.00


[/TD]
[/TR]
[TR]
[TD]Barb


[/TD]
[TD]42006


[/TD]
[TD]3.00


[/TD]
[/TR]
</tbody>[/TABLE]

Current format for table for calculation:

[TABLE="width: 414"]
<tbody>[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Ada


[/TD]
[TD]Alan


[/TD]
[TD]Amy


[/TD]
[/TR]
[TR]
[TD]42001


[/TD]
[TD]42007


[/TD]
[TD]12/28 to 01/03


[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]42008


[/TD]
[TD]42014


[/TD]
[TD]01/04 to 01/10


[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]


Thanks for any help or suggestions.

Brook Trout.
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
Hi. I copied your tables and pasted them into cell A1 of a new sheet. I then used this calculation in cell D61:

=SUMIFS($C$1:$C$54,$B$1:$B$54,">="&$A61,$B$1:$B$54,"<="&$B61,$A$1:$A$54,D$59)
 
Upvote 0

Forum statistics

Threads
1,223,896
Messages
6,175,260
Members
452,627
Latest member
KitkatToby

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