+ Reply to Thread
Results 1 to 9 of 9

Employee Schedule - Subtracting a 30 min lunch from a schedule 6 or more hours long

Hybrid View

candrus Employee Schedule -... 07-15-2013, 01:59 PM
Toonies Re: Employee Schedule -... 07-15-2013, 02:23 PM
FDibbins Re: Employee Schedule -... 07-15-2013, 02:30 PM
candrus Re: Employee Schedule -... 07-15-2013, 04:47 PM
muckleshed Re: Employee Schedule -... 07-15-2013, 05:40 PM
candrus Re: Employee Schedule -... 07-15-2013, 05:52 PM
muckleshed Re: Employee Schedule -... 07-15-2013, 07:13 PM
muckleshed Re: Employee Schedule -... 07-15-2013, 06:26 PM
candrus Re: Employee Schedule -... 07-15-2013, 06:32 PM
  1. #1
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Employee Schedule - Subtracting a 30 min lunch from a schedule 6 or more hours long

    H and welcome to the forum

    Keep in mind that excel treats time as a fraction/decimal of 1 (day). So 12:00 mid day is actually 0.5, and 06:00am is 0.25.

    30 minutes is either 0.0208333333333333 or 30/60/24

    plug that into your formula and see how far you get

    Another observation - if you are just adding (or subtracting) 2 numbers, you dont need to use the SUM() function.
    =IF(C7>0,SUM(C7-B7),"0")
    can be shortened to...
    =IF(C7>0,C7-B7,0)
    Last edited by FDibbins; 07-15-2013 at 02:32 PM.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  2. #2
    Registered User
    Join Date
    07-14-2013
    Location
    Portland, Oregon
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Employee Schedule - Subtracting a 30 min lunch from a schedule 6 or more hours long

    Thanks for the advice!

    I used the formula =IF(C1<=TIME(6,0,0),C1,C1-TIME(0,30,0)) from the forum you linked me to, and it works great for subtracting the half houre. Now the only problem I have is that when someone is scheduled off, I have the formula calculating "0" in column D, but it's creating a problem in column F. It just shows "#######" in column F and it messes with the totaled hours for the day. So the total for Sunday is showing as 14:30 when it should be 16.

    excel help2.xls
    Attached Files Attached Files

+ 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: 1
    Last Post: 07-03-2015, 06:57 AM
  2. Work Schedule - Deducting Lunch Breaks
    By ManyLemons23 in forum Excel General
    Replies: 6
    Last Post: 06-11-2013, 06:45 AM
  3. Employee schedule hours tracking
    By jimothyone in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-03-2013, 02:43 AM
  4. Subtracting hours in a work schedule
    By heel4you in forum Excel General
    Replies: 45
    Last Post: 09-26-2009, 09:37 AM
  5. employee schedule
    By wingsofeagle in forum Excel General
    Replies: 1
    Last Post: 07-03-2008, 09:16 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