+ Reply to Thread
Results 1 to 39 of 39

calculate OT after certain hours worked

  1. #1
    Registered User
    Join Date
    01-25-2017
    Location
    London, England
    MS-Off Ver
    MS Office 2010
    Posts
    59

    calculate OT after certain hours worked

    Hi Guys,

    Just wanted to request assistance for this excel file. Regular Hours is 10.5 Hours, i wanted to see the OT and late.

    OT - the computation will start after 10.5 hours is completed. But the rule is the valid OT computation should start after 11.5. valid for OT is above 1 hour after you completed the 10.5 hours.

    LATE- if 10.5 hours is not completed it will show on this column.

    Please refer to the attached file.

    Thanks,
    Attached Files Attached Files
    Last edited by concepcion.jensen; 01-26-2017 at 12:53 AM.

  2. #2
    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,933

    Re: help with excel formulas (timekeeping)

    Please take a moment to read the forum rules and then amend your thread title to something descriptive of your problem - not what you think the answer might be. (think google search terms?). Once you have done this please send me a PM and I will remove this request. (Also, include a link to your thread - copy from the address bar)

    Many members search our previous posts, and thread titles play a big part of the search. I doubt anybody would do a search based on your title?

    To change a Title on your post, click EDIT POST then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.
    (I have changed it for you - this time )
    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

  3. #3
    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,933

    Re: calculate OT after certain hours worked

    I am a bit confused. You cay to calc OT after 10.5 hrs, but then you say to calc it after 11.5 hours? Which 1 is it?

    Can you show some sample answers in your file please?

  4. #4
    Registered User
    Join Date
    01-25-2017
    Location
    London, England
    MS-Off Ver
    MS Office 2010
    Posts
    59

    Re: calculate OT after certain hours worked

    sorry for the confusion i wanted to a output like this
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    01-25-2017
    Location
    London, England
    MS-Off Ver
    MS Office 2010
    Posts
    59

    Re: calculate OT after certain hours worked

    sorry for the confusion, what i mean is the valid for OT is above 1 hour after you completed the 10.5 hours.

  6. #6
    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,933

    Re: calculate OT after certain hours worked

    I dont see how you get 1:39 hrs OT for the 1st row?
    Start 9:00 AM
    End 20:39 PM
    = 11:39 hrs worked
    You said OT starts after 10.5 hrs, so that should only be 1:09 hrs, not 1:39 hrs?

    G
    H
    2
    1:09
    3
    2:00
    4
    2:00
    5
    2:00
    6
    2:00
    7
    0:30

    G2=IF(D2-C2-(10.5/24)<0,"",D2-C2-(10.5/24))
    H2=IF(D2-C2-(10.5/24)<0,(10.5/24)-(D2-C2),"")
    both copied down
    use Custom Format [h]:mm;@

  7. #7
    Registered User
    Join Date
    01-25-2017
    Location
    London, England
    MS-Off Ver
    MS Office 2010
    Posts
    59

    Re: calculate OT after certain hours worked

    Sir just wanted to clarify things. I just made up the result, i wanted a result that shows the OT after 1 hour (valid 1 hour after completion of 10.5 hrs.). so can you show me the computation , for example:
    Time in:10:01am
    Time out: 9:32pm
    Late:0
    OT: 1.1

  8. #8
    Registered User
    Join Date
    01-25-2017
    Location
    London, England
    MS-Off Ver
    MS Office 2010
    Posts
    59

    Re: calculate OT after certain hours worked

    i have copied and paste it on my excel. not working, can you please send the file. Thanks.

  9. #9
    Registered User
    Join Date
    01-25-2017
    Location
    London, England
    MS-Off Ver
    MS Office 2010
    Posts
    59

    Re: calculate OT after certain hours worked

    Sir the late formula is correct, but can you formulate me the OT time - the valid OT is 1 hour after you completed the 10.5 hours.
    i.e.
    Start 10:00 AM
    End 20:39 PM
    late:0
    OT: 0

    Start 10:01 AM
    End 9:31 AM
    Late 0
    OT: 1

  10. #10
    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,933

    Re: calculate OT after certain hours worked

    I have modified my formulas...
    A
    B
    C
    D
    E
    F
    G
    H
    1
    Employee
    Schedule
    Log in
    Log Out
    OT
    LATE
    2
    Name1 Flexitime
    9:00 AM
    8:39 PM
    1.39
    1:09
    3
    Name2 Flexitime
    10:00 AM
    6:30 PM
    2
    2:00
    4
    Name3 Flexitime
    10:00 AM
    10:30 PM
    2:00
    5
    Name4 Flexitime
    11:00 AM
    11:30 PM
    2:00
    6
    Name5 Flexitime
    2:00 PM
    2:30 AM
    2:00
    7
    Name6 Flexitime
    4:30 PM
    3:30 AM
    0:30
    8
    10:00 AM
    20:39 PM
    9
    10:01 AM
    9:31 PM
    1:00

    G2=IFERROR(IF(D2-C2-(10.5/24)<0,"",D2-C2-(10.5/24)),"")
    H2=IFERROR(IF(D2-C2-(10.5/24)<0,(10.5/24)-(D2-C2),""),"")
    both copied down as needed

  11. #11
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: calculate OT after certain hours worked

    In simple you have add one column "B" : Schedule In & column "C" : Schedule Out
    "D" : Log in
    "E" : Log Out
    "F" : OT (Formula : =E2-C2) format as "Time" 13:30


    atul


    If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.

    Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved".

  12. #12
    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,933

    Re: calculate OT after certain hours worked

    Quote Originally Posted by avk View Post
    In simple you have add one column "B" : Schedule In & column "C" : Schedule Out
    "D" : Log in
    "E" : Log Out
    "F" : OT (Formula : =E2-C2) format as "Time" 13:30
    I dont follow what you are doing here, avk, can you post a quick sample please?

  13. #13
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: calculate OT after certain hours worked

    Here is sample file.
    Attached Files Attached Files

  14. #14
    Registered User
    Join Date
    01-25-2017
    Location
    London, England
    MS-Off Ver
    MS Office 2010
    Posts
    59

    Re: calculate OT after certain hours worked

    Sir how about the result that will disregard the OT if its below 1 hour, but will compute if the OT is above 1 hour.

  15. #15
    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,933

    Re: calculate OT after certain hours worked

    Quote Originally Posted by avk View Post
    Here is sample file.
    Not really sure where you got the start and end times from, I did not see that in the OP's posts (could have missed it though lol)

  16. #16
    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,933

    Re: calculate OT after certain hours worked

    Quote Originally Posted by concepcion.jensen View Post
    Sir how about the result that will disregard the OT if its below 1 hour, but will compute if the OT is above 1 hour.
    see if this will do what you want...
    =IFERROR(IF(ROUNDDOWN(D2-C2-(10.5/24),5) < ROUNDDOWN(1/24,5),"",D2-C2-(10.5/24)),"")

  17. #17
    Registered User
    Join Date
    01-25-2017
    Location
    London, England
    MS-Off Ver
    MS Office 2010
    Posts
    59

    Re: calculate OT after certain hours worked

    the work schedule must be 10.5 working hours.

  18. #18
    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,933

    Re: calculate OT after certain hours worked

    OK make up your mind.
    I gave you OT for working more than 10.5 hours, like you asked.
    Then you said it must be an hour over 10.5, and I gave you that
    Now you say (again) you want it more than 10.5.

    I strongly suggest that you attach a file showing all possible variations of what you want (and dont want), so that we can all stop guessing

  19. #19
    Registered User
    Join Date
    01-25-2017
    Location
    London, England
    MS-Off Ver
    MS Office 2010
    Posts
    59

    Re: calculate OT after certain hours worked

    Thanks for the patience, actually this is the sample file that i am working with. Please refer to the attached file so you can have the idea.

    We wanted to calculate the Late and OT. But we have a policy on OT (that it must be 1hour above to be included on the computation).
    Attached Files Attached Files

  20. #20
    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,933

    Re: calculate OT after certain hours worked

    Just to make sure I have the rules right...
    You earn OT after working more than 10.5 hours.
    But you have to work at least 1 hour OT before you will be considered for payment
    If you work less than 1 hour OT, you do not qualify to be paid (you worked that time for free)
    If you work more than 1 hour OT, all time after 10.5 counts as OT

    Is that correct?

    Oh and by the way, all those "times" in your file, are not really times, they are text that just looks a bit like time
    0531h is text
    05:31 AM is real time

  21. #21
    Registered User
    Join Date
    01-25-2017
    Location
    London, England
    MS-Off Ver
    MS Office 2010
    Posts
    59

    Re: calculate OT after certain hours worked

    Correct, but can you show on the results that if the OT is less than 1 hour it will not appear on the cell to avoid confusion.

  22. #22
    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,933

    Re: calculate OT after certain hours worked

    1. So you want OT less than an hour to NOT be shown...or to BE shown?

    2. did you see my comment regarding what you have entered as "time"?

  23. #23
    Registered User
    Join Date
    01-25-2017
    Location
    London, England
    MS-Off Ver
    MS Office 2010
    Posts
    59

    Re: calculate OT after certain hours worked

    FDibbins,
    OT that is less than an hour will not be shown. and yeah, the correct format is 05:31 AM.

    Can you also fix the issues if the time worked goes over midnight (12:00AM)

  24. #24
    Registered User
    Join Date
    01-25-2017
    Location
    London, England
    MS-Off Ver
    MS Office 2010
    Posts
    59

    Re: calculate OT after certain hours worked

    FDibbins,
    OT that is less than an hour will not be shown. and yeah, the correct format is 05:31 AM.

    Can you also fix the issues if the time worked goes over midnight (12:00AM)

  25. #25
    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,933

    Re: calculate OT after certain hours worked

    Is your time really entered as in your latest sample file?

  26. #26
    Registered User
    Join Date
    01-25-2017
    Location
    London, England
    MS-Off Ver
    MS Office 2010
    Posts
    59

    Re: calculate OT after certain hours worked

    Sorry for the time format, it is incorrect, that is only a sample, you can change it to the correct time format.

  27. #27
    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,933

    Re: calculate OT after certain hours worked

    Do my suggested formulas not work for you?

    If not, what do they give, compared to what you want?

  28. #28
    Registered User
    Join Date
    01-25-2017
    Location
    London, England
    MS-Off Ver
    MS Office 2010
    Posts
    59

    Re: calculate OT after certain hours worked

    can you show it to the new sample that i have uploaded, you can change the correct time format.

  29. #29
    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,933

    Re: calculate OT after certain hours worked

    Sorry, I am not going to correct your times. Fix those and re-upload, so that I have realistic data to work with

  30. #30
    Registered User
    Join Date
    01-25-2017
    Location
    London, England
    MS-Off Ver
    MS Office 2010
    Posts
    59

    Re: calculate OT after certain hours worked

    Hi FDibbins, Please refer to the attached file.
    Attached Files Attached Files
    Last edited by concepcion.jensen; 01-31-2017 at 12:18 AM.

  31. #31
    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,933

    Re: calculate OT after certain hours worked

    Sorry for the delay in responding.

    Did you try my suggested formulas in that file?

  32. #32
    Registered User
    Join Date
    01-25-2017
    Location
    London, England
    MS-Off Ver
    MS Office 2010
    Posts
    59

    Re: calculate OT after certain hours worked

    Hi FDibbins, you told me to correct the times and re-upload. Please refer to the attached file for reference.
    Attached Files Attached Files

  33. #33
    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,933

    Re: calculate OT after certain hours worked

    yes, I saw that file. As I asked in post 31 - did you try my suggested formulas yet?

  34. #34
    Registered User
    Join Date
    01-25-2017
    Location
    London, England
    MS-Off Ver
    MS Office 2010
    Posts
    59

    Re: calculate OT after certain hours worked

    Yes sir, already tried that but It is not working on my end. Hoping you can fix that for me thank you.

  35. #35
    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,933

    Re: calculate OT after certain hours worked

    OK in F5, how did you get 0.58?
    9:35 Am to 7:50 PM is 10:15. You said to show Late that is less than 10.5 hours, si that should be 0:15, which my "late" formula gives you...
    F5=IFERROR(IF(E5-D5-(10.5/24)<0,(10.5/24)-(E5-D5),""),"")
    copied down

    You dont show anything in the OT column, but in row 4, you have 5:31 AM to 6:52 PM which is 13:21, so after 10.5 hours, that gives 2:51 OT...which my "OT" formula calcs...
    G4=IFERROR(IF(ROUNDDOWN(E4-D4-(10.5/24),5) < ROUNDDOWN(1/24,5),"",E4-D4-(10.5/24)),"")
    copied down

    If you format them to Custom [h]:mm they should show up what you need

  36. #36
    Registered User
    Join Date
    01-25-2017
    Location
    London, England
    MS-Off Ver
    MS Office 2010
    Posts
    59

    Re: calculate OT after certain hours worked

    Hi Sir FDibbins,

    can you attached the file sir that you already tested.

  37. #37
    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,933

    Re: calculate OT after certain hours worked

    Sure. Below your table, I show what the actual hour difference is, as well as the hour difference minus 10.5 hours. because excel does not like negative time (it gives an error) I used ABS() to just show the difference - ignore the formula, look atthe time
    Attached Files Attached Files

  38. #38
    Registered User
    Join Date
    01-25-2017
    Location
    London, England
    MS-Off Ver
    MS Office 2010
    Posts
    59

    Re: calculate OT after certain hours worked

    thanks sir FDibbins. It already resolve my issue.

  39. #39
    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,933

    Re: calculate OT after certain hours worked

    Happy to help and 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] Instruction for timekeeping file
    By Jenny_Truong in forum Excel General
    Replies: 5
    Last Post: 08-25-2016, 11:07 AM
  2. VBA to Prevent Timekeeping Values from being Negative
    By phelbin in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 06-01-2016, 02:53 PM
  3. Replies: 2
    Last Post: 07-12-2013, 02:34 AM
  4. [SOLVED] Excel 2007 : Excel copies only text values, no formulas or format
    By tuscan in forum Excel General
    Replies: 3
    Last Post: 08-03-2012, 06:55 AM
  5. Timekeeping
    By cbdeajr in forum Excel General
    Replies: 8
    Last Post: 07-26-2011, 07:00 AM
  6. timekeeping, merge & sort non-adjacent cells
    By BeatBama in forum Excel General
    Replies: 1
    Last Post: 01-14-2011, 12:16 PM
  7. Timekeeping
    By dyscjocki in forum Excel General
    Replies: 5
    Last Post: 09-05-2009, 04:29 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