08-18-2019 01:57 PM
08-18-2019 01:57 PM
Where I am currently working we have spreadsheets listing course lectures and seminars. As some courses/seminars cannot conflict with others, I need to find a way to identify which courses/seminars conflict. A sample spreadsheet is below.
The day and time cannot conflict with another day/time that is the same or has overlapping times.
I need a column at the end to identify all the exact and overlapping courses and seminars, not just by the times but by the day as well. I have been able to come up with a calculation to find overlapping times and another to find the same days/times however I am lost at how to create one calculation to do both. I am using Office 16.
|LING||1F25||1||SEM 5||1||F||900 -1000|
Any help would be greatly appreciated.
08-18-2019 03:28 PM
Hello @Arlene1070 ,
in order to use the time values in formulas, you will need to split them into two different columns, one for start, one for finish. When you've done that, can you post a small sample file here and manually mock up the desired result? That would be a lot easier than having to re-type data from your screenshot for testing.
08-18-2019 07:04 PM
Thank you so much for replying Ingeborg!
This is my first time on a forum so I really have no idea how this all works and greatly appreciate you responding. I am not sure when you say post a small sample file “here”, if you mean in this email or online so I am replying both to this email as well as online on the Microsoft site. I did not add a screenshot into my post, I copied the Excel file into the post. When I look at my post it shows as a table, not a screen shot. I will try again so you can work with the data easily.
Here is the revised table. I would like the last column to indicate all the lectures and seminars that fall on the exact same day/time and also the ones where the times overlap on the same day. In my sample, where times overlap on the same day or the lecture/seminar is at the exact same time/day as another, these are marked as TRUE.
I don’t need it to be TRUE or FALSE. It can be indicated by a 1 or whatever, as long as the ones that conflict are indicated somehow.
LING 1F25 SEM 7 and LING 5P07 LEC both fall on Thursdays (R) from 1400-1700.
LING 1F25 LEC on Mondays from 1500-1700 overlaps with 5P05 and 5P08 which fall on Mondays from 1400-1700.
|Subj||Num||DU||CType||Sec||Days||Start Time||Finish Time||Conflict|
08-19-2019 04:32 AM
You may attach your file clicking on this icon at the left bottom of the Reply window
To show the conflicts you may use
and, if you are on Office365 subscription or on Excel 2019, use TEXTJOIN to show conflicting courses
=SUBSTITUTE(TEXTJOIN(";",TRUE,IF(($G$5:$G$20=$G5)*($H$5:$H$20<$I5)*($I$5:$I$20>$H5),$B$5:$B$20&" "&$C$5:$C$20&" "&$E$5:$E$20,"")),$B5&" "&$C5&" "&$E5,"")
The only, you show in your example what 5P04 and 5P85 are not in conflict, but both of them are scheduled on Wed from 1100 to 1400. Same for 5P02 and 5P04.
Please check attached.
08-19-2019 06:56 AM
Thank you so much@Sergei Baklan !
Your solution worked great to find the conflicts. I could not use the TEXTJOIN function because of my version of Excel but I am so happy to be able to identify the conflicts now.
This will be extremely useful and save me a lot of time when going through countless courses.