+ Reply to Thread
Results 1 to 3 of 3

Use start and stop times (or length) to fill cells in between for schedules

  1. #1
    Registered User
    Join Date
    10-15-2014
    Location
    Michigan, US
    MS-Off Ver
    2010
    Posts
    5

    Use start and stop times (or length) to fill cells in between for schedules

    Hello,

    I am trying to figure out how to limit my workload a bit. When creating a schedule, I already have start time, end time and, I can easily calculate length of a shift. On another sheet, I have a graphical version of these schedules. Times are filled down in 30 minute increments in column A. The rest of columnscorrespond to employees. To enter employee's schedules into this sheet, I just enter 1 into a cell that corresponds with the employee's name and start time and drag that cell down until the end of their shift time.

    Question is...can excel look up that employee's start time and enter 1 into cells until the end time (or down to match the length of the shift). In other words, John Smith works from 8:00 AM to 5:00 PM. Excel would need to find John Smith column. Then, it would go down to row corresponding with 8:00 AM and enter 1 into it. It would continue entering 1 into each cell in the same column until either length of shift condition is met or until it reaches the row corresponding to the end of shift time.

    Let me know if that makes sense. I'm not sure if there is a formula for this or if I should have posted this into VBA thread because it's a more of a programming thing?

    Any help/advice is appreciated!!

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,739

    Re: Use start and stop times (or length) to fill cells in between for schedules

    I think you could probably do this using formulae, but it would help if you attached a sample Excel workbook so we can see how your data is arranged.

    To do this, click on Go Advanced (below the Edit Window) while you are composing a reply, then scroll down to and click on Manage Attachments and the Upload window will open. Click on Browse and navigate to (and double-click) the file icon that you want to attach, then click on Upload and Close this Window to return to the Edit window. When you have finished composing your post, click on Submit Post.

    Pete

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

    Re: Use start and stop times (or length) to fill cells in between for schedules

    Do the shifts span past midnight?

    Data Range
    A
    B
    C
    D
    E
    F
    G
    1
    Bill
    Lisa
    Employee
    Start
    End
    2
    8:00 AM
    1
    Bill
    8:00 AM
    12:00 PM
    3
    8:30 AM
    1
    Lisa
    10:00 AM
    3:30 PM
    4
    9:00 AM
    1
    5
    9:30 AM
    1
    6
    10:00 AM
    1
    1
    7
    10:30 AM
    1
    1
    8
    11:00 AM
    1
    1
    9
    11:30 AM
    1
    1
    10
    12:00 PM
    1
    1
    11
    12:30 PM
    1
    12
    1:00 PM
    1
    13
    1:30 PM
    1
    14
    2:00 PM
    1
    15
    2:30 PM
    1
    16
    3:00 PM
    1
    17
    3:30 PM
    1
    18
    4:00 PM
    19
    4:30 PM
    20
    5:00 PM
    21
    5:30 PM
    22
    6:00 PM
    23
    6:30 PM
    24
    7:00 PM
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

+ 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. Trying to list start and stop times in a chart
    By Rambam in forum Excel General
    Replies: 2
    Last Post: 07-28-2015, 11:45 PM
  2. Identify distinct start stop times
    By dmoe2k1 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-21-2014, 11:02 AM
  3. Replies: 5
    Last Post: 12-17-2013, 12:00 PM
  4. Auto-fill adjacent cells based on start/stop date?
    By jeffreyray in forum Excel General
    Replies: 3
    Last Post: 10-03-2011, 06:49 PM
  5. Sorting Schedules by Start Times
    By Plain Jane in forum Excel General
    Replies: 0
    Last Post: 05-12-2011, 03:13 PM
  6. Match Start & Stop Times
    By dreicer_Jarr in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-09-2010, 10:46 PM
  7. How to chart start and stop times
    By tresscott in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 04-10-2005, 06:06 PM

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