+ Reply to Thread
Results 1 to 9 of 9

Hour Calculation Help!!!!!!

  1. #1
    Registered User
    Join Date
    10-24-2013
    Location
    Stockton
    MS-Off Ver
    2007
    Posts
    20

    Hour Calculation Help!!!!!!

    Okay guys, I've been doing a lot of searching the last couple of days and have made some progress but I'm still getting a little stuck.

    I'm looking to calculate hours for weekly payroll.

    I got the day to day measurements down but this is what I'm having trouble with:

    I need a formula in column "C" to calculate the hours for row 6-8. I need it to calculate regular hours only if rows 2-6 are less than 40. Anything more than 40 should be calculated in the OT section.

    Also, for the 7th day, anything worked more than 8 hours should be calculated as DT instead of OT.

    I tried to add notes to the spreadsheet to make it easier to explain. Let me know

    Payroll Hours.xlsx

  2. #2
    Registered User
    Join Date
    10-24-2013
    Location
    Stockton
    MS-Off Ver
    2007
    Posts
    20

    Re: Hour Calculation Help!!!!!!

    I think what I'm trying to see if there's a way to get a MIN and MAX calculation in the same cell.

  3. #3
    Registered User
    Join Date
    10-24-2013
    Location
    Stockton
    MS-Off Ver
    2007
    Posts
    20

    Re: Hour Calculation Help!!!!!!

    Help anyone?

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Hour Calculation Help!!!!!!

    Please note that forum rules require yo to wait at least 24 hours befor bumping your thread

    Having said that, I would use real hours rather than regular numbers, but if you already have your file set up that way, then try this in D2, copied down...
    =IF(OR(A2="day 7",B2<=8),0,B2-8)
    and then in E2, copied down...
    =IF(OR(A2<>"day 7",B2<=8),0,B2-8)

    I saw that you had some values in DT that were not Day 7. I suggest that maybe you have another cell at the bottom (ish) that calcs DT for more than 40 hours?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  5. #5
    Registered User
    Join Date
    10-24-2013
    Location
    Stockton
    MS-Off Ver
    2007
    Posts
    20

    Re: Hour Calculation Help!!!!!!

    Sorry I didn't know that rule.

    The only problem I'm still having is where if in one of the days the person works less than 7 hours, it deducts from the total ot instead of staying at 0.

  6. #6
    Registered User
    Join Date
    10-24-2013
    Location
    Stockton
    MS-Off Ver
    2007
    Posts
    20

    Re: Hour Calculation Help!!!!!!

    Sorry that problem has been solved, what I'm getting stuck on is having that same column stop at 4. So the lowest number that it goes 0 and the highest be 4 (since after 12 work hours it would be Double Time).

  7. #7
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Hour Calculation Help!!!!!!

    Rather than getting into complicated formulae based on days of the week (there is no indication that the Day 1 to Day 7 run from Sunday to Saturday or where in the week the numbering starts) that could be copied down the length of the columns I broke the system into three logical sections according to the rules that you indicate then applied separate formulae to each section.

    I kept it simple.
    Attached Files Attached Files
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  8. #8
    Registered User
    Join Date
    10-24-2013
    Location
    Stockton
    MS-Off Ver
    2007
    Posts
    20

    Re: Hour Calculation Help!!!!!!

    Quote Originally Posted by newdoverman View Post
    Rather than getting into complicated formulae based on days of the week (there is no indication that the Day 1 to Day 7 run from Sunday to Saturday or where in the week the numbering starts) that could be copied down the length of the columns I broke the system into three logical sections according to the rules that you indicate then applied separate formulae to each section.

    I kept it simple.
    Thanks a lot!

    Thats exactly what I needed, the only thing was that on the 6th day it was supposed tobe OT if more than 40 instead of DT but I was able to fix that thanks to your original formula.

  9. #9
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Hour Calculation Help!!!!!!

    You're welcome

    Thanks for the feedback.

+ 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] Rate Calculation - per hour
    By ganeshinscribe in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-14-2013, 06:20 AM
  2. SLA non-business hour calculation
    By tirthasarathi in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 10-01-2013, 03:13 AM
  3. Calculation of average and the max CPU for the hour
    By zahedreza.k in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 02-01-2013, 01:12 PM
  4. SLA non-business hour calculation
    By tirthasarathi in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-08-2010, 04:50 PM
  5. [SOLVED] calculation of pounds per hour
    By george in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 08-02-2005, 02:05 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