+ Reply to Thread
Results 1 to 7 of 7

University schedule - check for duplicates and/or overlap

  1. #1
    Registered User
    Join Date
    09-02-2013
    Location
    Oslo, Norway
    MS-Off Ver
    Excel 2013
    Posts
    44

    University schedule - check for duplicates and/or overlap

    Hi,

    I have compiled schedules for severeal classes/groups and I would like to check for duplicates based on information from multiple cells. What I would like to check is if the "date" (column F), "time" (column I), and "Person" (column J) is the same or overlap. E.g. the person is scheduled for one group from 8-12 but also with another group from 10-14 (which obviously won't be ideal). I would also like to do the same control for date, time and room, so that two groups doesn't occupy the same room at the same time, or their classes overlap at the same room.

    With som help I was able to concatentate and match text strings, wich highlights the row if the above information is excatly the same, but not if the time overlaps.

    Any help would be appriciated! Feel free to add any helper columns, spilt the time column in start/end time or whatever is needed. I am pretty familiar with hos to build formulas, but I just can't figure out how to solve this. So if anyone is able to point me in the right direction or present any working formula I would be very happy. If VBA/macro is needed thats okey, I am familiar with basic VBA.
    Workbook attached.
    Attached Files Attached Files
    If I helped you out please add to my reputation.

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: University schedule - check for duplicates and/or overlap

    To get you started.

    I added column J and K to split the begin and endtime.

    I used vlookup for that.

    The vlookup table is on the sheet table.

    after that I made a pivot table to sort the data.

    after that I made a helpcolumn in sheet Oeldere in column M.

    In column N there is a countif formula to count if there is a duplication.

    After that you can filter on all values > 1.

    There you will see all duplicated data (sorted on date).

    I don't have a solution yet to see if there is a overlap in rooms.

    See the attached file.

    Edit => use the new added file (oeldere2) instead.

    Then the names of the rooms are below eachother.
    Last edited by oeldere; 08-05-2017 at 06:13 AM. Reason: edit: use this file instead
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: University schedule - check for duplicates and/or overlap

    Are you able to identify any duplicates since I can't see any?

    Since the times are dependent on the Tid field this is simplified since presumably we don't need to worry about the absolute time range.

    I concatenated the Person, date and Tid value in a helper column and then used a simple COUNTIF on each row to count how many times the helper column value appeared in the whole of the helper column - and couldn't see any.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  4. #4
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: University schedule - check for duplicates and/or overlap

    @Richard Buttrey

    28-8-2017 Borre Idrettspark 10:15:00 11:45:00 Fredrik Lie Haugen
    28-8-2017 Borre Idrettspark 10:15:00 11:45:00 Steinar Øvreås

    both rooms are duplicated (see my sheet in #2)

  5. #5
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: University schedule - check for duplicates and/or overlap

    @oeldere.

    Quite correct. I'd missed the bit about the room.

  6. #6
    Registered User
    Join Date
    09-02-2013
    Location
    Oslo, Norway
    MS-Off Ver
    Excel 2013
    Posts
    44

    Re: University schedule - check for duplicates and/or overlap

    Thank you very much for your replies.
    Your solution is quite good oeldere. Any idea on how to detect the overlapping sessions? Thats the really anyoing problem.

  7. #7
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: University schedule - check for duplicates and/or overlap

    No, not have found a solution for that.

    But since the data are sorted by date and then by room, it looks to me you can easily check that manualy.

    As start for an solution, you can add which times (tid) are overlapping.

    You can add the tid (code) in e.g. column E on the sheet table.

    Maybe we can work with that value (tid)

+ 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. Repeat or overlap check between two values
    By raghavakl in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-29-2016, 02:43 AM
  2. Calculating schedule overlap
    By Karl_Ridener in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-04-2015, 12:18 AM
  3. [SOLVED] determine total overlap time when there are gaps in overlap (4 date ranges)
    By miriambender in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-12-2014, 11:58 PM
  4. Replies: 0
    Last Post: 08-14-2013, 11:21 AM
  5. [SOLVED] Check for date and time overlap on a simple invoice
    By DJadwin in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-19-2013, 10:11 PM
  6. Overlap check
    By zhshqzyc in forum Excel General
    Replies: 4
    Last Post: 03-22-2011, 10:41 AM
  7. Macro to check for blank cell entry, copy previous value, and check for duplicates
    By xPunxNotDeadx in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-26-2009, 06:33 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