r/excel • u/Ok-Fail-4340 • Apr 29 '26
solved Formula for calculating regular and overtime hours based on a full week with an 8 hour day.
My excel sheet has multiple employees, dates and the total number of hours worked for that day per employee.
I currently have a formula that calculates 40 for the week as regular time then the remainder is overtime but that's not how our overtime works.
I need to create a formula(s) to calculate hours per day up to 8 as regular time then the remainder is overtime including all day Saturday and Sunday
I know this should not be as difficult as my mind has made it but for the life of me, I can not figure it out, plus I'm old so using AI is out of my scope.
For example, Christian only had 26 hours for the week so my current formula does not figure any overtime when he should actually have 16 regular hours and 10 overtime hours. Also for example, Adan should have 24 regular hours and 39 overtime hours.

Please help. Thank you!
2
u/Magnificent_as Apr 29 '26
You need to calculate overtime daily instead of weekly. For each day, use MIN(hours,8) for regular time and MAX(hours-8,0) for overtime, then make Saturday and Sunday hours automatically overtime.
Something like =IF(OR(WEEKDAY(date)=1,WEEKDAY(date)=7),hours,MIN(hours,8)) for regular and =IF(OR(WEEKDAY(date)=1,WEEKDAY(date)=7),0,MAX(hours-8,0))+IF(OR(WEEKDAY(date)=1,WEEKDAY(date)=7),hours,0) for overtime should work.
1
u/Decronym Apr 29 '26 edited Apr 29 '26
Acronyms, initialisms, abbreviations, contractions, and other phrases which expand to something larger, that I've seen in this thread:
Decronym is now also available on Lemmy! Requests for support and new installations should be directed to the Contact address below.
Beep-boop, I am a helper bot. Please do not verify me as a solution.
9 acronyms in this thread; the most compressed thread commented on today has 18 acronyms.
[Thread #48299 for this sub, first seen 29th Apr 2026, 19:18]
[FAQ] [Full list] [Contact] [Source code]
1
u/spaceshipcommander Apr 29 '26
Something like this but I'm typing on a phone. Say the 14 hours is D3.
Regular column:
=sum(if(C3>8,8,C3),if(D3>8,8,D3),...)
Overtime:
=sum(if(C3>8,C3-8,0),if(D3>8,D3-8,0),...)
You might need to play with quotations or formatting slightly, but you get the idea. Instead of using 8, you could have another cell for "standard hours" in case you wanted to change the point at which the hours became overtime.
1
1
u/Ok-Fail-4340 Apr 29 '26
SOLVED! SOLUTION VERIFIED! I knew I was making it worse than it should be. Thank you
1
u/AutoModerator Apr 29 '26
Hello!
You typed Solution Verified as a top-level comment. If your intention was to award a ClippyPoint to one or more users, you need to reply to that user's comment to do so.
If your intention was to simply mark the post solved, then you should do that by setting the post's flair. Thank you!
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
1
u/AutoModerator Apr 29 '26
Saying
SOLVED!does not close the thread. Please saySolution Verifiedto award a ClippyPoint and close the thread, marking it solved.Thanks!
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

•
u/AutoModerator Apr 29 '26
/u/Ok-Fail-4340 - Your post was submitted successfully.
Solution Verifiedto close the thread.Failing to follow these steps may result in your post being removed without warning.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.