+ Reply to Thread
Results 1 to 5 of 5

Time and shift patterns formulas, please

  1. #1
    Forum Contributor
    Join Date
    02-15-2005
    Location
    Central UK
    MS-Off Ver
    Office 365
    Posts
    175

    Time and shift patterns formulas, please

    Hi All,

    Thanks for reading. I am trying to work out a formula to calculate day and night hours with the following rules:
    Day shift = 06:00:00 - 18:00 :00 - regular day rate
    Night shift = 18:00:00 - 06:00:00 - regular night rate
    Saturday starts at 00:00 (Saturday) and ends at 12:00:00 Saturday when it becomes ... (Saturday morning is enhanced rate)
    Sunday until 23:59:00 on Sunday night (Saturday PM until midnight Sunday is double time)

    Workers often start early e.g. 05:00:00, overtime is often spread over Friday evening into Saturday morning and sometime even a couple of hours into Saturday afternoon.

    The reports I have to work with are formatted as hh:mm:ss hence I have included everything this way

    Can anyone help, please ... it's driven me mad for two days now

    Thanks
    Attached Files Attached Files
    Last edited by y_not; 03-20-2019 at 12:53 PM. Reason: Sample attached

  2. #2
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,742

    Re: Time and shift patterns formulas, please

    Can you attached any sample file, please?
    Happy with my answer * Add Reputation.
    If You are happy with solution, please use Thread tools and mark thread as SOLVED.

  3. #3
    Forum Contributor
    Join Date
    02-15-2005
    Location
    Central UK
    MS-Off Ver
    Office 365
    Posts
    175

    Re: Time and shift patterns formulas, please

    Think I was attaching as you requested - thanks

  4. #4
    Forum Contributor
    Join Date
    02-15-2005
    Location
    Central UK
    MS-Off Ver
    Office 365
    Posts
    175
    Quote Originally Posted by KOKOSEK View Post
    Can you attached any sample file, please?
    Uploaded. Thanks

  5. #5
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Time and shift patterns formulas, please

    Not sure about this.

    Please try at
    E2 Press Ctrl+Shift+Enter
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    F2 Press Ctrl+Shift+Enter
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    G2
    =MAX(0,ROUND((MIN(6.5,WEEKDAY(C2,2)+MOD(C2,1))-MAX(WEEKDAY(B2,2)+MOD(B2,1),6))*24,4))
    H2
    =MAX(0,ROUND((MIN(8,WEEKDAY(C2,2)+MOD(C2,1))-MAX(WEEKDAY(B2,2)+MOD(B2,1),6.5))*24,4))
    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. Pivot Table for Shift Patterns
    By Tellm in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 03-12-2015, 06:37 AM
  2. Shift time & penalty rate formulas
    By EWATR in forum Excel General
    Replies: 3
    Last Post: 01-20-2015, 10:32 AM
  3. Trying to create optimum shift patterns based on known requirements
    By jmac1168 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-14-2014, 11:51 AM
  4. shift patterns / dragging data
    By oopspete in forum Excel General
    Replies: 3
    Last Post: 11-19-2011, 02:26 PM
  5. Weekend Shift Patterns
    By Jonathan78 in forum Excel General
    Replies: 14
    Last Post: 01-06-2011, 10:28 AM
  6. How to create shift patterns
    By eddmed in forum Excel General
    Replies: 4
    Last Post: 02-11-2010, 03:01 PM
  7. Replies: 2
    Last Post: 08-07-2008, 05:22 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