+ Reply to Thread
Results 1 to 7 of 7

timesheet calculation formula

  1. #1
    Registered User
    Join Date
    11-04-2018
    Location
    Johor, Malaysia
    MS-Off Ver
    2016
    Posts
    3

    timesheet calculation formula

    Goodday and have a nice everyone..

    I still beginner with excel and i cant manage to complete the timesheet after spent a few days trying.. and for your additional information, our office still using Microsoft Excel 2013..

    Problem (1)
    Refer Sheet TRIAL, and OT 2.0
    Attachment 886551
    OT 2.0 and OT 3.0 is for PH (public holiday only),
    if they work form 8am till 12pm, they will get for 4hrs on OT 2.0 (red words),
    if they work form 8am till 1pm, they STILL get for 4hrs on OT 2.0 because 1hrs Lunch Break (blue words),
    if they work form 8am till 5pm, they will get for the total hours DEDUCT 1hr Lunch Break on OT 2.0 (green words),
    if they work more than 6pm, they will get for the total hours DEDUCT 1hr Lunch Break on OT 2.0.

    but the value OT hours that on red, blue and green colours not get same like "Supposedly OT 2.0 hours need"..



    Problem (2)
    Refer Sheet JAN25, and OT 1.5
    Attachment 886552
    Please refer Yellow Row that appeared as ##### error value..

    OT 1.5 only works for Monday to Friday OT 1.5 after 5pm,
    and Saturday OT 1.5 will start after 1pm, in other hand..

    The formula got problem too..
    if they work form 8am till 1pm, they will NOT get OT 1.5 but daily basic,
    if they work form 8am till 2pm, they will get OT 1hr on OT 1.5 (total working hours DEDUCT 4 hours basic DEDUCT 1 hour Lunch Break).


    herewith the excel for your references..
    template.xlsx
    Last edited by ShidaWork; 01-13-2025 at 01:01 AM.

  2. #2
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2019
    Posts
    4,542

    Re: timesheet calculation formula

    In Sheet Trial cell M15, copy down: =IF(A15="","",IF(E15="PH",IF(H15<=4/24,H15,H15-1/24),0))
    Last edited by josephteh; 01-11-2025 at 09:43 PM.

  3. #3
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2019
    Posts
    4,542

    Re: timesheet calculation formula

    In Sheet Trial cell L15, copy down: =IF(A15="","",IF(AND(C15="Saturday",E15<>"PH"),MAX(H15-5/24,0),0))

  4. #4
    Registered User
    Join Date
    11-04-2018
    Location
    Johor, Malaysia
    MS-Off Ver
    2016
    Posts
    3

    Re: timesheet calculation formula

    Hi sir, thank you very much for helping me out, i really appreciated..

    the 1st formula is work for my Microsoft 2013, because PH not only on Saturday..
    but, there still got a bit problem (even if the red, blue and green words is successfully works)..
    the problem is, work after 6pm..
    the formula get me total hours with deduct 1hr Lunch Break on OT 2.0,
    let say 8am to 6pm, total working hours is 9, the 1st 8hrs only will pay on OT 2.0

    example work 8am to 6pm, working hours = 9hrs,
    then, OT 2.0 = 8hrs, and OT 3.0 = 1hr

    ** but for this case, i had solved the formula (adjust manually), but not in the perfect formula
    template 13.01.2025.xlsx

  5. #5
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2019
    Posts
    4,542

    Re: timesheet calculation formula

    Change OT2.0 formula to: =IF($A15="","",IF($E15="PH",IF($H15<=5/24,$H15,MIN($H15-1/24,8/24)),0))
    And, OT3.0: =IF($A15="","",IF($E15="PH",IF($H15<=9/24,0,$H15-9/24),0))

    Check Clock Out times, e.g. cell G38, it's entered as 01/01/1900 8:00:00 AM, that's 8:00 AM the next day, so total working hours is 24 hours, not 0.

    You should format Working Hours in this format: [h]:mm ("h" in square brackets).

  6. #6
    Registered User
    Join Date
    11-04-2018
    Location
    Johor, Malaysia
    MS-Off Ver
    2016
    Posts
    3

    Re: timesheet calculation formula

    Goodday Sir, deeply apologies for late reply..

    Just now i had try the formula that you give and also changed the format as your advised..
    its extremely amazing, and well functioning

    and the problem (2) also solved after i rnd with all your formula..
    1st time i work with time formula, its new experiences for me..

    I am so grateful for your time and effort to monitoring me..
    I really adored with your talent
    Thank you very much for your guidance and support..

  7. #7
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2019
    Posts
    4,542

    Re: timesheet calculation formula

    You are welcome. Thanks for the feedback, Rep and for marking the thread Solved!

+ 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] Timesheet formula - Per Diem calculation based on data in other cells
    By MDoyle7227 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-29-2022, 06:06 PM
  2. Formula to Count Hours In Different Bracket - Timesheet Calculation
    By peteholland2 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-05-2020, 11:37 AM
  3. [SOLVED] Timesheet Calculation Help
    By jeci80 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 02-19-2014, 12:04 PM
  4. Timesheet calculation
    By sinternational in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-03-2013, 09:34 AM
  5. Help with timesheet calculation
    By amexjunkie in forum Excel General
    Replies: 3
    Last Post: 11-04-2011, 02:24 AM
  6. Timesheet Calculation
    By btoti in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-18-2006, 03:30 PM
  7. Timesheet calculation
    By candlekeeper in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-25-2006, 03:41 PM

Tags for this Thread

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