+ Reply to Thread
Results 1 to 2 of 2

Calculating additional hours onto a shift

  1. #1
    Registered User
    Join Date
    03-26-2014
    Location
    Calgary, AB
    MS-Off Ver
    Excel 2007
    Posts
    11

    Calculating additional hours onto a shift

    Maybe cause it's Friday but I am totally stumped here!

    In my new role, staff will add x amt of hours to their shift as overtime. For example, John is scheduled to work until 11:00am. He emails to say "I will pick up 3 hrs 15 min of overtime at the end of my shift" can I not put in a formula that says if you add 3.25 hrs to an end time of 11am, he will be working till this time. Also in the reverse where if he starts at 8am and wants to work 3 hrs and 15 minutes overtime before his shift, then a formula where his start is 8am and 3.25 hrs before is a new start time of....

    I think the snow in our town is freezing my brain!

  2. #2
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: Calculating additional hours onto a shift

    You can just add/subtract the times. Let's say you have 'Start time' in A1 and 'End time' in B1, with 04:00 in A2 and 11:00 in B2.
    Put in four new columns C-F: 'Early Overtime', 'New Start time', 'Late overtime' and 'New End time'.
    In C2 and E2 you can enter overtime requested. In D2, put this:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    The reason for the IF...>=0 is to account for anyone working overtime prior to a shift which takes the start time to the previous day - Excel doesn't like negative times, so adding 1 to the start time keeps everything positive. If your times are in 'date and time' format, then you can just do a simple subtraction instead (the A2-C2 bit).

    In F2, put this:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    The thing you need to ensure is that all times are entered as times, not decimals. Enter them as '3:15' not '3.25' or '4:00' not just '4' (without the inverted commas). The colon lets Excel know to treat it as a time.

    Hopefully that helps.

    Edit: see attached file which shows the above formulae working.
    Last edited by Aardigspook; 10-07-2016 at 12:52 PM. Reason: Add example file
    Regards,
    Aardigspook

    I recently started a new job so am a bit busy and may not reply quickly. Sorry - it's not personal - I will reply eventually.
    If your problem is solved, please go to 'Thread Tools' above your first post and 'Mark this Thread as Solved'.
    If you use commas as your decimal separator (1,23 instead of 1.23) then please replace commas with semi-colons in your formulae.
    You don't need to give me rep if I helped, but a thank-you is nice.

+ 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. Calculating work hours with additional needs
    By newbienewb in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-01-2016, 05:11 AM
  2. Calculating shift hours above 40 per week
    By evansmike881 in forum Excel General
    Replies: 2
    Last Post: 05-02-2015, 05:54 AM
  3. Calculating Hours For Shift Penalties
    By Cam_M in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-18-2014, 12:39 PM
  4. [SOLVED] Calculating Shift Premium Hours
    By sxhall in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-18-2013, 09:24 AM
  5. [SOLVED] Calculating hours worked for 3rd shift
    By tiffany04530 in forum Excel General
    Replies: 10
    Last Post: 11-30-2012, 01:56 PM
  6. Calculating Hours Worked from Shift Begin and Shift End
    By lukeflegg in forum Excel General
    Replies: 5
    Last Post: 08-12-2011, 03:25 PM
  7. Calculating Time: add additional hours
    By Luvchyle in forum Excel - New Users/Basics
    Replies: 8
    Last Post: 10-11-2010, 04:27 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