+ Reply to Thread
Results 1 to 5 of 5

Sum Start & End Time, But Deduct Breaks If The Start & End Time Falls During Break Times

  1. #1
    Forum Contributor
    Join Date
    02-23-2014
    Location
    Melbourne
    MS-Off Ver
    Microsoft 365
    Posts
    174

    Post Sum Start & End Time, But Deduct Breaks If The Start & End Time Falls During Break Times

    Hello Experts
    I have created a production report
    Now the operator will fill in the job start and end times. In a day they could start and finish multiple jobs

    Is it possible for Excel to sum the start and end time, but if the start and end times fall during scheduled break times. It should deduct the break times and give a total minus the break

    I have attached a copy of my excel sheet and screen capture

    Thanks and kind regards
    Rahul
    Attached Images Attached Images
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    06-30-2015
    Location
    Netherlands
    MS-Off Ver
    2013 / 2016 / 365
    Posts
    145

    Re: Sum Start & End Time, But Deduct Breaks If The Start & End Time Falls During Break Tim

    Hi and welcom to the ExcelForum,

    To check if jobtime includes breaktimes as well, you need to add this check to the subtraction in cell E9.
    You can do that by adding this part of the formula to the calculation which is already there:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    This part checks if the registered job time include the breaks and if so subtract the breaktime from the registered time.

    Full formula looks like this:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Your changed file is attached.
    Attached Files Attached Files
    Last edited by joris moerings; 02-24-2016 at 04:52 AM.

  3. #3
    Forum Contributor
    Join Date
    02-23-2014
    Location
    Melbourne
    MS-Off Ver
    Microsoft 365
    Posts
    174

    Re: Sum Start & End Time, But Deduct Breaks If The Start & End Time Falls During Break Tim

    Hi Joris
    Thanks for the solution and it works as i had wanted
    But i have come across another problem which i hadn't thought of when I asked the question

    If someone works from 06:30am till 12:00pm going home early and having only the morning tea break
    The formula throws up a #NUM error because the Lunch & afternoon tea breaks columns are blank

    Is there a way to ignore if blank?

    Thanks and regards
    Rahul
    Attached Images Attached Images

  4. #4
    Forum Contributor
    Join Date
    06-30-2015
    Location
    Netherlands
    MS-Off Ver
    2013 / 2016 / 365
    Posts
    145

    Re: Sum Start & End Time, But Deduct Breaks If The Start & End Time Falls During Break Tim

    Rahul,

    i assumed the times mentioned in the Time section being the daily schedule and they would not change.
    Changed the formula so it handle's the blanks. Be aware to make the formula work both time fields from a break should be blank.
    Attached Files Attached Files

  5. #5
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Sum Start & End Time, But Deduct Breaks If The Start & End Time Falls During Break Tim

    Another way. See if this takes care of that and the #NUM error.

    This is an array formula in E9 and filled down.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If you aren’t familiar with array-entered formulas array enter means the formula must be committed from edit mode by simultaneously pressing and holding down Ctrl and Shift while hitting Enter.
    Dave

+ 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: 7
    Last Post: 04-25-2020, 03:23 AM
  2. [SOLVED] deduct End time to Start Time more than 24 hours
    By zerocrsh in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-26-2014, 03:50 PM
  3. [SOLVED] Find row where time value falls between start and end time values
    By wraithlet in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-12-2013, 12:35 PM
  4. Replies: 3
    Last Post: 03-27-2012, 01:07 PM
  5. Calculating END time based on start time, breaks, and hours to complete
    By sweedey in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-01-2012, 11:29 AM
  6. Replies: 7
    Last Post: 10-20-2011, 01:43 PM
  7. Replies: 1
    Last Post: 06-25-2010, 06:57 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