+ Reply to Thread
Results 1 to 4 of 4

How to subtract 30min lunch for night shift.

  1. #1
    Registered User
    Join Date
    05-09-2013
    Location
    Mount Pleasant TX
    MS-Off Ver
    Excel 2010
    Posts
    4

    How to subtract 30min lunch for night shift.

    I have a foumula that works fopr lunches on a day shift 6am-4:30pm but I cant seem to get it to work on the second shift that runs 6pm-5am.
    He is what I have….

    =(G10-F10)*24-IF((G10-F10)*24>4.5,0.5) works for days....

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: How to subtract 30min lunch for night shift.

    This should work for both day and night shift:

    =(MOD(G10-F10,1)-IF(MOD(G10-F10,1)*24>4.5,30/1440))*24

    Format as General or Number
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Registered User
    Join Date
    05-09-2013
    Location
    Mount Pleasant TX
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: How to subtract 30min lunch for night shift.

    You rock!!!

    Thank you and I mean that!

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: How to subtract 30min lunch for night shift.

    You're welcome. Thanks for the feedback!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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