Payroll - Daily & Weekly Overtime

wbeverett

New Member
Joined
Oct 31, 2010
Messages
8
(This is Sooo Bad, I had all this typed and lost it in the preview)
(This time I "ctrl+c" everything before preview)
(In preview my pic didn't show, I used the wrong link: "Use the second one")

vgh9qt.jpg


I am creating a weekly expense report that includes pay

Daily Hours <= 8 $10.00
Daily Hours > 8 $15.00
Weekly Hours > 40 $15.00
All hours count toward weekly total
Saturday, Sunday treated like any other day
Work week starts on Sunday

Let's say I work 15 hours a day

Sunday
8 hours @ $10.00 ea.
7 hours @ $15.00 ea.

Monday
8 hours @ $10.00 ea.
7 hours @ $15.00 ea.

Tuesday
8 hours @ $10.00 ea.
7 hours @ $15.00 ea. - over 8 for the day and reached 40/wk

Wednesday (and rest of the week)
0 hours @ $10.00 ea.
15 hours @ $15.00 ea. - over 40/wk

I appreciate your comments!
 
Last edited:
I need to modify the alternative formula so that the >40/wk only includes the first 8 of each day starting on Sunday. Thanks!
 
Upvote 0

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
I can't help but think you would be better off both in terms of simplicity/transparency to break out the daily hours by type, eg:

Excel Workbook
BCDEFGHIJ
11SundayMondayTuesdayWednesdayThursdayFridaySaturday
12Description24-Oct25-Oct26-Oct27-Oct28-Oct29-Oct30-OctTotal
13Hours Worked15121071541578
14Regular8887810
15OT74207315
16Hours x Hourly Rate1851401107018555225970
17old approach18514011090225602251035
Sheet1
 
Upvote 0
Thank you for your response but I would really like to maintain the 2-line format. I went back to using the streamlined version and replaced:

=IF(SUM($C$13:C$13)<40,

with:

=IF(SUM(MIN(8,$C$13),MIN(8,C$13))-MIN(8,C$13)<40,



The problem is that as I carry it across the cells it leaves out the in between cells, eg:

=IF(SUM(MIN(8,$C$13),MIN(8,I$13))-MIN(8,I$13)<40,




With this formula I have to modify each days formula (4th day example):

=IF(SUM(MIN(8,$C$13),MIN(8,$D$13),MIN(8,$E$13),MIN(8,F$13))-MIN(8,F$13)<40,


and having to do that I simplify to:

=IF(SUM(MIN(8,$C$13),MIN(8,$D$13),MIN(8,$E$13))<40,




I really just wanted:

=IF(SUM(MIN(8,$C$13):MIN(8,C$13))-MIN(8,C$13)<40,


but of'course that doesn't work. Other issues pop up, the formula needs to know to start calculating overtime on hours when the 40 is met:

1st 2nd 3rd 4th 5th 6th 7th

_9__7__12__8__10__5__6
__________________^
__________________1 hour reg 4 hours ot



I have spent alot of time on this, more-so than I should have, so if anyone can help I'll be most grateful.

Thanks in Advance.
 
Last edited:
Upvote 0
The 2 line format may seem more elegant but it's equally less efficient.

Rich (BB code):
=SUM(MIN(8,C$13,MAX(0,40-SUM(IF(ISNUMBER($B$13:B$13)*($B$13:B$13>8),8,$B$13:B13))))*10,(C$13-MIN(8,C$13,MAX(0,40-SUM(IF(ISNUMBER($B$13:B$13)*($B$13:B$13>8),8,$B$13:B13)))))*15)
confirmed with CTRL + SHIFT + ENTER (enter alone will not suffice)

Other alternatives would include use of SUBTOTAL & OFFSET but at that point the formula becomes Volatile which given it's inefficiency is far from ideal.
 
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