+ Reply to Thread
Results 1 to 2 of 2

Calculating Hours worked and Time in Liu owed.

  1. #1
    Registered User
    Join Date
    04-09-2010
    Location
    Melbourne
    MS-Off Ver
    Excel 2010
    Posts
    22

    Post Calculating Hours worked and Time in Liu owed.

    Hi Guys,

    Currently have a spreadsheet that i made that will calculate the hours worked when a user enters start and finish time.

    e.g

    C9(Start Time): 09:00
    E9(End Time): 18:30
    F9(Hours Paid): 9.00 ((IF(AND(ISNUMBER(C11),ISNUMBER(E11)),MOD(E11-C11,1)*24))-D9)
    I9(TIL Earnt): 2.25
    J9(TIL Accured):2.25
    H9(TIL Used): 0



    Now to calculate how many hours is owed to the user:, i take the result above, minus standard working day hours (7.5), that gives me 1.5 hours owed.
    It then needs to be multiplied by weekday penalty rate(1.5) or weekend penalty rate(2.0) (*'OT Rates'!$B$2))


    C9(Start Time): 09:00
    E9(End Time): 18:30
    F9(Hours Paid): 9.00 (=(IF(AND(ISNUMBER(C11),ISNUMBER(E11)),MOD(E11-C11,1)*24))-D9)
    I9(TIL Earnt): 2.25 (=(((IF(AND(ISNUMBER(C9),ISNUMBER(E9)),MOD(E9-C9,1)*24))-D9)-'OT Rates'!$B$5)*'OT Rates'!$B$2)
    J9(TIL Accured):2.25
    H9(TIL Used): 0

    I assume there would be an easier way to do this envolving dates but am completely unsure on how to go about it

    where 'OT Rates' is another worksheet which contains details on standard day and penalty rates.



    Everything works fine if hours worked are greater or even then a standard working day(7.5 hours),

    E.G

    C9(Start Time): 09:00
    E9(End Time): 18:30
    F9(Hours Paid): 9.00
    I9(TIL Earnt): 2.25
    J9(TIL Accured):2.25
    H9(TIL Used): 0

    however if they work say 6 hours, it does the same calculation.

    E.G

    C9(Start Time): 12:00
    E9(End Time): 18:30
    F9(Hours Paid): 6.00
    I9(TIL Earnt): -2.25
    J9(TIL Accured):0
    H9(TIL Used): 0

    What idealy should happen:

    E.G

    C9(Start Time): 12:00
    E9(End Time): 18:30
    F9(Hours Paid): 6.00
    I9(TIL Earnt): -1.00
    J9(TIL Accured):1.25
    H9(TIL Used): 1.00

    sample timesheet if the above confuses you:
    sampleTimesheet.xlsx

    cheers,

    daniel

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Calculating Hours worked and Time in Liu owed.

    Hi Daniel,

    See the timesheet tab in the attachment where Green cells are done and yellow are partially done as I am not able to understand the calculation logic for them. Thanks.

    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    Attached Files Attached Files
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

+ 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