+ Reply to Thread
Results 1 to 4 of 4

Sorting groups based on time window

Hybrid View

  1. #1
    Registered User
    Join Date
    02-09-2020
    Location
    Bangalore, India
    MS-Off Ver
    365 / 2019
    Posts
    6

    Sorting groups based on time window

    Hi,

    I'm not sure if this is the right place to post this, but here goes.

    I am trying to make a data file with the following requirements / goals:

    I have multiple teams with 10-15 members in each team who work in different shifts. For example:

    Team A - Log in at 8 AM and Log out at 5 PM
    Team B - Log in at 10 AM and Logout at 7 PM
    Team C - Log in at 1 PM and Logout at 10 PM

    Now I want to create a workbook in a manner where If I input a time slot (example 5 PM to 7 PM) - I get a list of the team members who are not working during that time (In this case I would get a list of team A's names).

    I'm fairly new to excel and it's features - so I'm having trouble coming up with the logic process I'll have to follow to create this kind of a file. Any inputs would be greatly appreciated!

    Thanks,
    Rythwin

  2. #2
    Forum Expert
    Join Date
    10-15-2018
    Location
    MA, USA
    MS-Off Ver
    2010, 2019
    Posts
    1,616

    Re: Sorting groups based on time window

    Here is a possible starting point for you.

    rythwin.png

    On the "Employees" worksheet I have time in col-A at one hour intervals.
    Row-1 is a list or employees
    Row-2 is the team to which the employee is allocated.
    There is one column per employee showing what hours that employee works
    Col-H gives you total staff in any given hour.

    The "Teams" worksheet is used by the "Employees" worksheet to look up the shift start and end for each team.

    There is just one formula in Employees!B3 copied across and down to G19.
    =IF(AND(INDEX(Teams!$B$2:$B$4, MATCH(B$2, Teams!$A$2:$A$4, 0))<=$A3, INDEX(Teams!$C$2:$C$4, MATCH(B$2, Teams!$A$2:$A$4, 0))>$A3), 1, "")

    I hope this gives you some ideas for how your design might work.
    Attached Files Attached Files
    Geoff

    Did I help significantly? If you wish, click on * Add Reputation to say thanks.
    If your problem has been resolved please select ?Solved? from the Thread Tools menu

  3. #3
    Registered User
    Join Date
    02-09-2020
    Location
    Bangalore, India
    MS-Off Ver
    365 / 2019
    Posts
    6

    Re: Sorting groups based on time window

    That is a helpful start, but I don't want to track their logged hours.. I want to be able to pull the names of the employees who are not logged in at a give time window of 1 hour or so.

    Thanks for the start though, it's useful and it has got my brain moving somewhere

  4. #4
    Forum Expert
    Join Date
    10-15-2018
    Location
    MA, USA
    MS-Off Ver
    2010, 2019
    Posts
    1,616

    Re: Sorting groups based on time window

    If you need further specific advice then please attach a sample workbook. To do this please follow the instructions in the yellow banner at the top of this thread that is titled "HOW TO ATTACH YOUR SAMPLE WORKBOOK".

+ 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. [SOLVED] Sorting data into groups based on blank rows.
    By Voluntaryist in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-20-2014, 08:42 AM
  2. [SOLVED] Sorting left tor right in groups of 3 columns based on the total of one column in each...
    By Hyflex in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-11-2014, 03:32 PM
  3. Replies: 2
    Last Post: 09-11-2013, 04:35 AM
  4. Replies: 6
    Last Post: 11-28-2011, 04:08 AM
  5. Replies: 4
    Last Post: 02-17-2011, 08:29 AM
  6. Conditional Formatting Based on Time Window
    By sdoremus in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-07-2008, 04:48 PM
  7. Calculate pay-hours based upon variable time window.
    By FIS_Worker in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-01-2008, 06:47 PM

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