summarizing timesheets

nbirnbaum

New Member
Joined
Jul 31, 2017
Messages
3
I'm trying to automate calculation of overtime pay for employees.

Employee timesheets are exported from our time system as Excel spreadsheets.

They contain two weeks of data. Each day of the week might have multiple time entries. Here's an example of part of a spreadsheet:

[TABLE="width: 500"]
<tbody>[TR]
[TD]Date[/TD]
[TD]Billable Hours[/TD]
[TD]Nonbillable Hours[/TD]
[/TR]
[TR]
[TD]7/1/2017 9:30 AM[/TD]
[TD]3.5[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]7/1/2017 2:30 PM[/TD]
[TD][/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]7/1/2017 5:00 PM[/TD]
[TD]4[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]7/2/2017 10:00 AM[/TD]
[TD][/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]7/2/2017 3:00 PM[/TD]
[TD]5[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]etc...[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

I need to:
1. Determine the total time worked for each day.
2. Determine the total time worked for each week (remember there are two weeks of date represented in the spreadsheet).

Can you make suggestions? Thanks! :-)
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Try Sumifs or SumProduct

Excel 2010
BCDEFGHI
2BillableNon-BillableTotal
3Jul 01, 2017 09:303.503.50Jul 01, 20179.509.50
4Jul 01, 20172.002.00Jul 02, 201711.0016.00
5Jul 01, 20174.004.00
6Jul 02, 20172.002.00Week
7Jul 02, 20174.004.00Jul 01, 201745.5045.50
8Jul 02, 20175.005.00
9Jul 03, 20175.005.00TRUE
10Jul 04, 20175.005.00
11Jul 05, 20175.005.00
12Jul 06, 20175.005.00
13Jul 07, 20175.005.00
14Jul 08, 201720.0020.00
6a
Cell Formulas
RangeFormula
B3=DATE(2017,7,1)+TIME(9,30,2)
E3=C3+D3
H3=SUMPRODUCT(--(INT(B3:B101)=G3),(E3:E101))
H4=SUMPRODUCT(--(INT(B4:B102)=G4),(E4:E102))
H7=SUMPRODUCT(--(INT(B3:B101)>=G7),--(INT(B3:B101)<=G7+6),(E3:E101))
I3=SUMIFS(E3:E101,B3:B101,">="&G3,B3:B101,"<="&G3+1)
I4=SUMIFS(E4:E102,B4:B102,">="&G4,B4:B102,"<="&G4+1)
I7=SUMIFS(E3:E101,B3:B101,">="&G3,B3:B101,"<"&G3+7)
G9=SUM(C:C)+SUM(D:D)=SUM(E:E)
 
Last edited:
Upvote 0
correct previous post
I had problems posting to the forum.


Excel 2010
BCDEFGHI
2BillableNon-BillableTotal
3Jul 01, 2017 09:303.503.50Jul 01, 20179.509.50
4Jul 01, 20172.002.00Jul 02, 201711.0011.00
5Jul 01, 20174.004.00
6Jul 02, 20172.002.00Week
7Jul 02, 20174.004.00Jul 01, 201745.5045.50
8Jul 02, 20175.005.00
6a
Cell Formulas
RangeFormula
B3=DATE(2017,7,1)+TIME(9,30,2)
E3=C3+D3
H3=SUMPRODUCT(--(INT($B$3:$B$100)=G3),($E$3:$E$100))
H4=SUMPRODUCT(--(INT($B$3:$B$100)=G4),($E$3:$E$100))
H7=SUMPRODUCT(--(INT(B3:B100)>=G7),--(INT(B3:B100)<=G7+6),(E3:E100))
I3=SUMIFS($E$3:$E$100,$B$3:$B$100,">="&G3,$B$3:$B$100,"<"&G3+1)
I4=SUMIFS($E$3:$E$100,$B$3:$B$100,">="&G4,$B$3:$B$100,"<"&G4+1)
I7=SUMIFS($E$3:$E$100,$B$3:$B$100,">="&G7,$B$3:$B$100,"<"&G7+7)
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,164
Messages
6,170,444
Members
452,326
Latest member
johnshaji

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