+ Reply to Thread
Results 1 to 5 of 5

Building an Employee Shift Schedule that Automatically Deducts Breaks

  1. #1
    Registered User
    Join Date
    09-11-2012
    Location
    Richmond, VA USA
    MS-Off Ver
    MS Office 2013
    Posts
    6

    Building an Employee Shift Schedule that Automatically Deducts Breaks

    I'm trying to create a simple employee shift schedule that automatically removes half-hour breaks. So far, I've muddled through the formula to add up hours worked by day, however, I cannot seem to figure out how to prevent a break from a day without hours worked. In this screenshot example, I have an employee with five 8.5 hour shifts with formula to deduct 0.5 hours from each day. Unfortunately, on the two days off, the breaks are deducted. Ideally, the formula for the 40-hour work week should return a result of 40. As you can see, it reads 39. The formula cell is R146.

    Please help. Also, I'm not sure how unnecessarily complex this formula is. If there is a simpler way to do this, I'd greatly appreciate the input.

    Thanks,

    Anthony
    RVA

    Excel Screenshot.png
    Excel Screenshot.png
    Last edited by derdoktor; 06-09-2016 at 07:17 PM. Reason: Picture did not upload.

  2. #2
    Registered User
    Join Date
    09-11-2012
    Location
    Richmond, VA USA
    MS-Off Ver
    MS Office 2013
    Posts
    6

    Re: Building an Employee Shift Schedule that Automatically Deducts Breaks

    Apparently, I cannot get the screenshot to attach.

    This formula (for R146) gathers data from a row of 14 horizontal cells (D146:Q146). Each set of 2 cells represents a shift start time and end time for a day.

    Here is the formula I've concocted...

    =SUM(((E146-D146)*24)-0.5)+(((G146-F146)*24)-0.5)+(((I146-H146)*24)-0.5)+(((K146-J146)*24)-0.5)+(((M146-L146)*24)-0.5)+(((O146-N146)*24)-0.5)+(((Q146-P146)*24)-0.5)

    Thanks again!

  3. #3
    Forum Contributor
    Join Date
    03-17-2005
    Location
    Canterbury, Kent
    MS-Off Ver
    2003, 2010
    Posts
    285

    Re: Building an Employee Shift Schedule that Automatically Deducts Breaks

    Try this.....

    Not very pretty but.....

    =IF(D146="",0,((E146-D146)*24)-0.5)+IF(F146="",0,((G146-F146)*24)-0.5)+IF(H146="",0,((I146-H146)*24)-0.5)+IF(J146="",0,((K146-J146)*24)-0.5)+IF(L146="",0,((M146-L146)*24)-0.5)+IF(N146="",0,((O146-N146)*24)-0.5)+IF(P146="",0,((Q146-P146)*24)-0.5)

    Windy

  4. #4
    Registered User
    Join Date
    09-11-2012
    Location
    Richmond, VA USA
    MS-Off Ver
    MS Office 2013
    Posts
    6

    Re: Building an Employee Shift Schedule that Automatically Deducts Breaks

    THANK YOU Windy! You are a badass.

  5. #5
    Forum Contributor
    Join Date
    03-17-2005
    Location
    Canterbury, Kent
    MS-Off Ver
    2003, 2010
    Posts
    285

    Re: Building an Employee Shift Schedule that Automatically Deducts Breaks

    No Problem, glad to have been of assistance.

    Windy

+ 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. Add employee name to schedule based on Shift and date
    By BARBIEE in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 04-18-2016, 12:44 AM
  2. Replies: 0
    Last Post: 10-27-2014, 11:54 PM
  3. Suggestions for implementing a automatically shift schedule display page?
    By George.F in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-03-2013, 06:15 AM
  4. Replies: 8
    Last Post: 07-15-2013, 07:13 PM
  5. Shift Schedule - 3 Shift Coverage - Auto Populate Roll-up Summary Schedule
    By chips1256 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 08-31-2012, 09:32 AM
  6. Replies: 1
    Last Post: 06-25-2010, 06:57 AM
  7. editing a formula that automatically deducts breaks
    By lengjay in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 02-12-2010, 11:10 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