+ Reply to Thread
Results 1 to 3 of 3

Total Working Hours Minus Break + Lunch Times

  1. #1
    Forum Contributor
    Join Date
    02-25-2010
    Location
    Birmingham, England
    MS-Off Ver
    Excel 2010
    Posts
    138

    Total Working Hours Minus Break + Lunch Times

    Good Afternoon,

    I am hoping somebody can assist me.... Slowly losing my mind with this one...

    I need a formula that can deduct morning and lunch breaks based on time worked.

    In the attached spreadsheet I have a Data Validation list in columns D + E, This shows the start and finish time on the machine and a calculation of the total run time in Column F.

    The machine run times are:

    Start: 08:00
    Break: 10:15-10:30
    Lunch: 13:00-13:30
    Finish: 16:00

    If a machine starts anywhere between 08:00-10:15 & finishes anywhere between 13:30-16:00 I need 45mins (break + lunch) deducting from total time.

    If a machine starts anywhere between 08:00-10:15 & finishes anywhere between 10:30-13:00 I need 15mins (break) deducting from total time.

    If a machine starts anywhere between 10:30-13:00 & finishes anywhere between 13:30-16:00 I need 30mins (lunch) deducting from total time.

    If a machine runs anwhere inside of these times, for example 7:15-9:45 there shoudl be no deduction.

    I hope this makes sense and i hope somebody can help.

    Many Thanks In Advance
    Ross

    DAILY PROD SHEET - VMC.xlsm

  2. #2
    Valued Forum Contributor Melvinrobb's Avatar
    Join Date
    06-19-2012
    Location
    Manitoba, Canada
    MS-Off Ver
    Excel 2013
    Posts
    1,128

    Re: Total Working Hours Minus Break + Lunch Times

    What happens if the time is 8:00 - 10:20?
    10:20 to 12:45?
    Please click the * icon below if I have helped.

  3. #3
    Forum Contributor
    Join Date
    02-25-2010
    Location
    Birmingham, England
    MS-Off Ver
    Excel 2010
    Posts
    138

    Re: Total Working Hours Minus Break + Lunch Times

    Hi Melvinrobb,

    In 'theory' the times entered on the spreadsheet should never be input between 10:15-10:30 & 13:00-13:30 as all machines are down between these times

    Regards
    Ross
    Last edited by Rosco88; 12-13-2013 at 05:38 AM.

+ 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. Replies: 8
    Last Post: 06-11-2013, 05:34 PM
  2. Removing non business days & hours & lunch break
    By Tom Hill in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-15-2013, 03:43 AM
  3. [SOLVED] Formula to work out hours between 2 dates and times.. MINUS Out Of Hours
    By chris.m in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 08-30-2012, 08:11 AM
  4. working time minus lunch
    By mr_markus in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 01-19-2012, 04:23 PM
  5. Replies: 0
    Last Post: 08-21-2010, 08:03 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