+ Reply to Thread
Results 1 to 4 of 4

Help with time formulas start/end/hrswork/ot

  1. #1
    Registered User
    Join Date
    11-28-2020
    Location
    Toronto, Canada
    MS-Off Ver
    2013
    Posts
    2

    Help with time formulas start/end/hrswork/ot

    Hello

    I am new to this forum and would love to get some help. I am trying to get all the times aligned and not getting it to work. Every time I fix one the other one fails. I am not good with rules as I am a beginner with excel.

    I have two different formulas going right now and I am stuck. I could use the help. At the end of the schedule is a totals column for the weekly hours. The only one working right is the late column because it's not really tied to the bigger cells. I need the late column to minus hours from the weekly total hrs of 37.5 per week.

    I was hoping to get this going for Monday at the beginning of the shift. Hope someone can assist me. The headings in red are the two different formulas.

    Need: The total hrs worked column to deduct the 30 min lunch. If they stay an hour of OT it will show up as the below. The OT column to calculate the OT with 15 min increments. 1.25, 1.5, 1.75 etc.. depending on how long the employee stays back.


    START END TOTAL HRS WRK OT LATE
    7:00 AM 4:00 PM 8.5 1
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,853

    Re: Help with time formulas start/end/hrswork/ot

    Welcome to the forum.

    Where have you shown your expected results? I am not completely clear where we should be looking.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    11-28-2020
    Location
    Toronto, Canada
    MS-Off Ver
    2013
    Posts
    2

    Re: Help with time formulas start/end/hrswork/ot

    The formula is in the spreadsheet in the highlighted headings. If I try to explain it since I might confuse everyone.

    Columns
    D E F G
    Start End Tot hrs work OT

    1st OPT: The formula so far I have is =(E3-D3)*24 which is in the total hrs column. This is in the OT column =IF(F3<=8,0,F3-8)

    2nd OPT: In the other highlighted column formula is =(T3-S3)*24-0.5 total hrs work and in the OT column =U3-7.5

    1st option almost does what I wanted but the OT column only goes up by the hour and not in 15 min increments. The OT will be wrong
    and the 2nd OPT goes into the - when I delete the start and end time instead of going to 0 like option 1.

    I am probably going to confuse everyone I apologize in advance. I am not good with rules. The late column ignore as I will have the last column minus that from the total weekly hours.
    Last edited by Drew69; 11-28-2020 at 01:16 PM. Reason: adding more

  4. #4
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: Help with time formulas start/end/hrswork/ot

    You are trying to show what formula you are using, but fail to show us: what is your expected outcome, in value

    Try to show us your manual results with:
    Case 1: 7:00 - 3:00: how many is hrs wrk, how many is OT, and why?
    Case 2: 7:00 - 4:00
    ...
    try to go thru all special cases (representative cases)
    Quang PT

+ 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. Project Start Date and Tasks Start/Finish Time
    By sammyb304 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-11-2019, 09:36 AM
  2. Replies: 0
    Last Post: 03-04-2016, 06:38 PM
  3. Replies: 4
    Last Post: 03-02-2016, 02:46 AM
  4. Time based formulas using a start date
    By davidstokes in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-17-2013, 04:35 PM
  5. Replies: 13
    Last Post: 07-09-2012, 11:38 AM
  6. Replies: 3
    Last Post: 03-27-2012, 01:07 PM
  7. Replies: 5
    Last Post: 03-21-2012, 08:07 AM

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