Creating a teaching schedule: Include weekends but exclude school holidays

themagicstorybag

New Member
Joined
Jul 4, 2012
Messages
11
Dear all,

I am trying to create a spreadsheet which will automatically calculate the teaching dates for a teacher teaching lessons on a weekly basis. The spreadsheet should include weekends, as some teaching is taught on Sat/Sun but exclude school holidays. (It would be nice if it could copy the times/students/locations as well – these are the same each week) E.g,.:

A Teacher teaches students on a weekly basis on Mondays:

02/07/2012 15:00-15:50/ Anna/room 501
15:30-16:00/Jack/room 501
16:00-16:30/Joe/room501
09/07/2012 15:00-15:50/ Anna/room 501
15:30-16:00/Jack/room 501
16:00-16:30/Joe/room501

16/07/2012 (HOLIDAY: 16/07/2012-20/07/2012), so no lessons
23/07/2012 15:00-15:50/ Anna/room 501
15:30-16:00/Jack/room 501
16:00-16:30/Joe/room501

What I need the spreadsheet to do is to automatically generate the dates/schedule and skip to the next lesson date if there is a holiday.

I have tried to use the WORKDAY formula, but this does not appear to include weekends?
This is the formula I have been using to test it:
=WORKDAY(A2,7,G3:G9) Where A2 is the start date and G3:G9 are the holidays… There are lots more holidays than this but I have only put in a few as a test. This seems to exclude the hoildays give the wrong dates as it does not include weekends?

I am a bit of a novice with excel/formulas so any help would be much appreciated. Is there an easy way to do this in excel?

Thanks
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.

Forum statistics

Threads
1,223,164
Messages
6,170,444
Members
452,326
Latest member
johnshaji

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top