+ Reply to Thread
Results 1 to 10 of 10

Time sheet formulas

  1. #1
    Registered User
    Join Date
    03-09-2012
    Location
    Georgia
    MS-Off Ver
    Excel 2007
    Posts
    11

    Time sheet formulas

    I'm working with 2007 version and my knowledge of formula's is limited. I need help writing a formula to calculate extra time worked. I have a formula to calculate total time worked and compensatory time (overtime that's put in as leave not paid). I need a formula to calculate extra time (time that will be paid in cash that's seperate from the comp time). I've attached a copy of the current sheet. The sheet I have works for hours over the threshold but does not work to populate the extra time when an employee does not work a full pay period.

    Thank you in advance.
    Attached Files Attached Files

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,446

    Re: Formula help with time sheets

    Hi and welcome to the board

    Just to make sure we understand correctly your requirement, could you please add an example of your problem to your sheet?

  3. #3
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,446

    Re: Formula help with time sheets

    Duplicate post
    Last edited by Pepe Le Mokko; 03-11-2012 at 04:18 AM. Reason: Dupe

  4. #4
    Registered User
    Join Date
    03-09-2012
    Location
    Georgia
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: Formula help with time sheets

    Thank you for the help. I've attached a sheet which shows a person worked 152 hours of regular work and twenty four hours of extra work. I49 should pull in the calculated overtime from H54 if there is any. In this example there is no overtime. If there is not any overtime it should only show what is in C42. That whole row in 54 can be reworked I'm not happy with what it does, occasionally it will put in hours in I49 when it shouldn't.
    Attached Files Attached Files

  5. #5
    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
    52,929

    Re: Formula help with time sheets

    If all you want to do is "populate I49 with either C42 or H54, then this will work...

    =IF(H54=0,C42,H54)

    I have cleaned up some of the formulae in your last table.

    If I didnt understand your requirement properly, please try to explain again
    Attached Files Attached Files
    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

  6. #6
    Registered User
    Join Date
    03-09-2012
    Location
    Georgia
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: Formula help with time sheets

    Thank you for your help.

    "If all you want to do is "populate I49 with either C42 or H54, then this will work..."

    This has been helpful but I need I49 to do more than just populate with those cells. I've attached the corrected form with explanations.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    03-09-2012
    Location
    Georgia
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: Formula help with time sheets

    Don't mean to sound impatient. Does anyone have any suggestions on how I can get this formula to calculate the data?

  8. #8
    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
    52,929

    Re: Formula help with time sheets

    Sorry for the delay, I was off for a few days...working on your solution right now

  9. #9
    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
    52,929

    Re: Formula help with time sheets

    Ok, for the 1st part of your question, i changed I49 to...

    =IF(AND(H54>=1,H54<=23),C54-A54,IF(H54=0,C42,H54))

    This works (as far as i can tell) to give you what you need to a 0, 1-23 and 24 in H35.

    Now, for the 2nd part of your questiom I was a little unclear as to which cell you wanted "a function that adds C54-A54 without becoming a negative" to be?

  10. #10
    Registered User
    Join Date
    03-09-2012
    Location
    Georgia
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: Formula help with time sheets

    It's taken me a few days but I think I have the question to the formula finally figured. What I think I need is the following formula: If C42 + F41 added together is equal or less than 168 then I 49 should = C42. If F41 + C42 added together is above 168 but F41 is below 168 than I49 should = H54 + 168 - A54. If F41 is equal or above 168 than I49 should = H54.

    Thanks you again for the help.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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