+ Reply to Thread
Results 1 to 4 of 4

Help with timesheet calculation

  1. #1
    Registered User
    Join Date
    10-19-2011
    Location
    Utah
    MS-Off Ver
    Excel 2007
    Posts
    1

    Help with timesheet calculation

    I am trying to revise our timesheet to fit a third shift (graveyards). What I have now works for what we need as long as it is within a calendar day. If it spans two days, then it errors out.

    The sticky part is this - lunches are tracked and a portion of the lunch is paid, provided it meets time requirements. Shifts lasting 10.5 hours or more have 15 minutes of their lunch paid; shifts lasting less than 10.5 hours have 10 minutes of their lunch paid.

    Time logged is shift start, lunch start, lunch end, and shift end. This is what I currently have that works for morning/afternoon same-day shifts:

    =IF(COUNT(G7,G10)<>2,"",IF(COUNT(G8:G9)<>2,IF(G10=0,1,G10)-G7,(G8-G7)+(IF(G10=0,1,G10)-G9)+IF(G9-G8>=(74/1440),0,IF((IF(G10=0,1,G10)-G7)*24>=10.5,(15/1440),(10/1440)))))

    I've also attached the portion of the spreadsheet I am currently working with. Any help would be greatly appreciated. Thank you in advance for your thoughts.
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    08-01-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2007
    Posts
    182

    Re: Help with timesheet calculation

    Hi,

    Welcome to the forum...

    Please check if the attached works for you...

    Cheers-
    Inayat
    Attached Files Attached Files
    One must rise above the Clouds to see the Blue Sky rather than constantly trying to push them aside

    If you want to say Thank you to a member, click the little star * below.

    If your Problem is Solved, please mark the Thread as Solved

  3. #3
    Valued Forum Contributor
    Join Date
    10-13-2010
    Location
    Sunderland, England
    MS-Off Ver
    Excel 2007 (Home) / 2003 (Work)
    Posts
    740

    Re: Help with timesheet calculation

    How about:

    =IF(OR(G3="",G6=""),"",IF(G6>G3,G6-G3,G6+(1-G3))-IF(COUNT(G4:G5)=2,(G5-G4),0)+IF(IF(G6>G3,G6-G3,G6+(1-G3))>0.43,15/1440,10/1440))

  4. #4
    Registered User
    Join Date
    11-04-2011
    Location
    nairobi
    MS-Off Ver
    Excel 2010
    Posts
    1

    Re: Help with timesheet calculation

    hi group, i am trying to keep track of per diem hours on a time sheet. our per diem starts at midnight and ends at midnight for each day. i had no problem subtracting 00:01 from 24:00 which yields and answer of 23:59. the problem is that i need to subtract 00:00 from 24:00 which yields 0 hours of total per diem pay versus the 24 hours that i want it to yield. anybody know how to fix that? steve in nairobi

+ 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