+ Reply to Thread
Results 1 to 17 of 17

Help on formula for calculating overtime

  1. #1
    Registered User
    Join Date
    07-20-2015
    Location
    Nassau, Bahamas
    MS-Off Ver
    2010
    Posts
    16

    Help on formula for calculating overtime

    hey everyone im new here and need some help with an excel formula please. Below is what i am trying to do i have also attached the file.

    Cell G22 - Adds all Regular Working Hours Together
    Cell H22 - Grabs Hours Over 8 Hours As Overtime
    (This is correct)

    Cell B22 - I would like this cell to add the Regular Work Hours and Overtime and subtract it from the weekly hours of 40 and display the remainder....basically i want this to show what goes over 40 hrs

    Thanks

    Salary Slip-Cashier.xlsx

  2. #2
    Valued Forum Contributor
    Join Date
    04-26-2015
    Location
    Toronto, Canada
    MS-Off Ver
    2010
    Posts
    502

    Re: Help on formula for calculating overtime

    Are Sat & Sunday hours overtime ??

    If they work 2 hrs extra do they automatically get paid 4hrs ?

    Do they work 8 and get paid for 8 or are the hours 8 but they get paid for 7.5 ?
    Last edited by BlindAlley; 07-20-2015 at 10:46 PM.

  3. #3
    Registered User
    Join Date
    07-20-2015
    Location
    Nassau, Bahamas
    MS-Off Ver
    2010
    Posts
    16

    Re: Help on formula for calculating overtime

    Any day can be considered a overtime, because there is a DAY OFF. This day off changes, which means the set working days are 5 days (40/8 Hrs) + 1 Overtime (Hourly Rate) + 1 Day Off.

    What ever goes beyond 40 Hrs or those 5 days is considered overtime.


    If 2 extra hours is worked (42 Hrs Total) they get paid for 40 hrs (Set Salary) + 2 Hrs(Overtime).


    If they work for example 9am - 5pm (This is 8 Hrs)..They get paid for 8 hrs.

    Thanks

  4. #4
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Help on formula for calculating overtime

    IN B22

    =MAX(0,SUMPRODUCT(D15:D21-C15:C21)- "40:00")
    formatted as [h]:mm
    Does that work for you?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  5. #5
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Help on formula for calculating overtime

    If you need hours as whole numbers to calculate pay, just format as general and multiply the entire thing by 24.
    Based on your description, the daily hours do not directly affect overtime so your values in G22 and H22 could be incorrect. For example, if the person works 10 hour days for 4 days and then works a 7 hour day. G22 will read 39:00 and H22 reads 8:00 instead of 40:00 and 7:00. Is that correct? My formula gives you 7:00 in B22

  6. #6
    Registered User
    Join Date
    07-20-2015
    Location
    Nassau, Bahamas
    MS-Off Ver
    2010
    Posts
    16

    Re: Help on formula for calculating overtime

    With your formula for B22 it displays only 0:00. Doesn't work

    Your correct ChemistB it is incorrect in G22 & H22, seems like it removes an entire hour instead of adding it to the overtime.

  7. #7
    Registered User
    Join Date
    07-20-2015
    Location
    Nassau, Bahamas
    MS-Off Ver
    2010
    Posts
    16

    Re: Help on formula for calculating overtime

    I have the Clock In & Clock Out formatted as Time Type 13:30

  8. #8
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Help on formula for calculating overtime

    How it is formatted shouldn't matter (unless it's text)
    See attached example
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    07-20-2015
    Location
    Nassau, Bahamas
    MS-Off Ver
    2010
    Posts
    16

    Re: Help on formula for calculating overtime

    With your formula, if i remove "- "40:00" it seems to work

  10. #10
    Registered User
    Join Date
    07-20-2015
    Location
    Nassau, Bahamas
    MS-Off Ver
    2010
    Posts
    16

    Re: Help on formula for calculating overtime

    Is it because of my version of excel? Seems to work on my 2011 edition on the mac but doesn't on 2010 on windows.

  11. #11
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Help on formula for calculating overtime

    Do you want it to estimate what the overtime will be at the end of the week? In your example, you only had 3 days filled in so far so if the person continued at that rate, they'd have 10 hours of overtime but they still only had 30 hours so no overtime.

  12. #12
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Help on formula for calculating overtime

    I am working with 2010 on windows. Check to make sure your clock hours are numbers and not text.

  13. #13
    Registered User
    Join Date
    07-20-2015
    Location
    Nassau, Bahamas
    MS-Off Ver
    2010
    Posts
    16

    Re: Help on formula for calculating overtime

    I was looking at G15 & H16, and seems like its possibly off by a hour? Shouldn't C15 & D15 be basically 11 hours instead of 10? Yes include the estimate of the overtime of the week.

  14. #14
    Registered User
    Join Date
    07-20-2015
    Location
    Nassau, Bahamas
    MS-Off Ver
    2010
    Posts
    16

    Re: Help on formula for calculating overtime

    I already got the overtime sorted out. By using this formula =SUM((B22)*24) * B27, i put this formula in B7 which calculates the overtime per hr.

  15. #15
    Registered User
    Join Date
    07-20-2015
    Location
    Nassau, Bahamas
    MS-Off Ver
    2010
    Posts
    16

    Re: Help on formula for calculating overtime

    Does the regular work hours and overtime look correct in the calculations?

  16. #16
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Help on formula for calculating overtime

    I was looking at G15 & H16, and seems like its possibly off by a hour? Shouldn't C15 & D15 be basically 11 hours instead of 10?
    I didn't touch your formulas in G and H. 17:30 - 7:30 does equal 10 hours. How are you figuring 11?

    Yes include the estimate of the overtime of the week.
    Okay, that's different. So if, only 3 days have been worked so far at 10 hours a day, do you want B22 to show 6 hours or 10 hours (extrapolating out)?

  17. #17
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Help on formula for calculating overtime

    This is how I would change it.
    Col G adds hours until they hit 40, then excess goes to Col H
    In G15 copied down
    =IF(SUM($G$14:G14)+(D15-C15)> "40:00"+0, MIN(D15-C15,"40:00"-SUM($G$14:G14)), D15-C15)
    In H15 copied down
    =IF(SUM($G$15:G15)="40:00"+0, D15-C15-G15,0)
    These formulas work if people are working more than a 5 day week and they will sum up correctly at the bottom. Then there's no need for the formula in B22 except as a check.
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Calculating Overtime Hours for each Day on a 40+ Overtime per Week Basis
    By HumdrumPanic in forum Excel General
    Replies: 5
    Last Post: 09-30-2020, 12:55 PM
  2. Calculating daily overtime and weekly overtime
    By Guy Montague in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-22-2016, 04:55 PM
  3. Help on formula(s) for calculating overtime/doubletime in CA
    By Jason Andi in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-31-2014, 02:46 AM
  4. Formula for calculating overtime with two variables
    By whatisnucca in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-20-2014, 01:45 PM
  5. [SOLVED] IF formula with array - Calculating Overtime
    By Gtrtim112 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-15-2013, 02:26 PM
  6. WHAT'S THE FORMULA FOR CALCULATING OVERTIME IN 1 CELL? EXAMPLE: 8.
    By garpavco in forum Excel Formulas & Functions
    Replies: 22
    Last Post: 09-06-2005, 07:05 PM
  7. need help w/formula for calculating overtime hours
    By jv749297 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-17-2005, 04:06 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1