+ Reply to Thread
Results 1 to 5 of 5

List consecutive shifts that occur within timeframe

  1. #1
    Forum Contributor
    Join Date
    08-20-2011
    Location
    Oslo
    MS-Off Ver
    MS 365
    Posts
    245

    List consecutive shifts that occur within timeframe

    Hi!

    1. I have a timeframe within "bookend 1" and "bookend 2". These bookends may start and stop at various times throughout the week and the time range between them can be of various length. "Bookend 1" will always be earlier than "bookend 2".
    2. Throughout the day, there are predefined times when "shift handovers" occur. These times are 07:00, 14:00 and 23:00 around the clock.
    3. While the bookends are entered manually into cell A1 and A6, I need formulas in cells A2 to A5 that shows the "shift handover" times consecutively. In the example below, "bookend 1" starts at 22:00, which means that the first possible "shift handover" will happen one hour later at 23:00. The formula must then enter date and time (Wednesday 4 May 2016 23:00 in any given format) in cell A2. In cell A3, I need the next upcoming shift and so forth until cell A5 is completed with a "shift handover" date/time or "bookend 2" limits the number of "shift handovers" that fit in the time range. (If the "bookend" range is very narrow, one or more of the cells A2 to A5 may be "blank" as there won't be enough "shift handovers" to fit within the range to fill out all the cells).

    Does anybody have a suggestion for an efficient formula to achieve this?

    Cell A1: Wednesday 4 May 2016 22:00 ("Bookend 1")
    Cell A2: Wednesday 4 May 2016 23:00 ("Shift handover at appointed time")
    Cell A3: Thursday 5 May 2016 07:00 ("Shift handover at appointed time")
    Cell A4: Thursday 5 May 2016 14:00 ("Shift handover at appointed time")
    Cell A5: Thursday 5 May 2016 23:00 ("Shift handover at appointed time")
    Cell A6: Friday 6 May 2016 00:00 ("Bookend 2")

    Best regards,
    Marbleking

  2. #2
    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: List consecutive shifts that occur within timeframe

    Marbleking, it would be helpful to us if you could upload a small Excel workbook that describes what you are starting with and the results you expect (hand typed in if necessary). This way

    we can see in context and it gives us data to work with. Be sure to desensitize the data.
    Dave

  3. #3
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: List consecutive shifts that occur within timeframe

    Hi
    Try this
    In D1:D4 put the values =7/24 , =14/24 , =23/24, =D1+1 (={0,291666666666667;0,583333333333333;0,958333333333333;1,29166666666667})
    In A1 put your date-time 4-05-2016 22:00
    Use in A2 the following
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    and copy down

  4. #4
    Forum Contributor
    Join Date
    08-20-2011
    Location
    Oslo
    MS-Off Ver
    MS 365
    Posts
    245

    Re: List consecutive shifts that occur within timeframe

    Hi, José Augusto

    Thanks for the formula; it works! :-)

    I had to start the value list in D1:D5 with =-1/24 to get it to also cover starting times 00:00 - 06:00.

    Best regards,
    Øystein

  5. #5
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: List consecutive shifts that occur within timeframe

    Hi Øystein
    I'm glad to have helped.
    Do not forget to mark the thread as SOLVED

+ 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: 8
    Last Post: 03-24-2016, 08:13 PM
  2. [SOLVED] Need to output a list of dates in a certain timeframe
    By TPDave in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-07-2014, 10:30 AM
  3. counting consecutive working shifts
    By tvt0290 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-20-2013, 05:10 PM
  4. Putting value's which occur most on top of the list
    By Ozzyman2 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-19-2013, 09:11 AM
  5. Attempting to List Activities to occur in the next 7 days
    By dchoward777 in forum Excel General
    Replies: 3
    Last Post: 02-28-2010, 03:34 PM
  6. [SOLVED] Recalculating Prize List when ties occur
    By elevdown in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-31-2008, 03:52 PM
  7. [SOLVED] Get excel to list values that occur within raw data
    By dennis34 in forum Excel General
    Replies: 2
    Last Post: 10-05-2005, 08:05 AM

Tags for this Thread

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