Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
VLH VLH is offline
external usenet poster
 
Posts: 7
Default Checking for conflicts in schedule

Hello,

I need to create a macro to check four columns of data;
start date/time
end date/time
teacher
assistant

that will let me know when there is a conflict in the schedule. For example
when a new class is added, I need the macro to search the columns and let me
know (in the fifth column) if the teacher or assistant is already scheduled
at that time.

I have tried to copy the schedule to a second sheet, sorting by start
date/time, and then usings a nested if statement to check the row just above
to see if either the teacher or assistant is already sheduled. The probem is
when there are several classes starting at the same time or close the same
time it doesn't check all the classes on that day.

=IF(AND(B4=B3, B4<=C3,OR(D4=D3,D4=E3,E4=D3,E4=E3)),"Conflict","")

Where the data is set up like this
B C D E F
Start Time End Time Teacher Assistant Conflict?

This is all done in a macro. Any help would be greatly appricated.

Thanks so much,
vlh



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Tennis Schedule - Schedule players randomly Chris M. Excel Discussion (Misc queries) 5 September 24th 09 09:48 PM
Name conflicts. Dudely Excel Programming 0 June 4th 08 09:23 PM
Save conflicts Donna A Excel Discussion (Misc queries) 0 June 27th 06 02:21 AM
Create patient schedule based on master therapist schedule PapaBear Excel Discussion (Misc queries) 8 October 12th 05 04:56 AM
Add-in conflicts will Excel Programming 1 April 22nd 04 07:39 PM


All times are GMT +1. The time now is 03:17 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"