Calendar and SUMPRODUCT

sunnybiss77

New Member
Joined
Jul 29, 2010
Messages
4
I am trying to maintain a list of classes and use the data to create a calendar. The data includes a teacher, classroom, class name, start date, and end date. I am open to manipulating the data, but ultimately want it to create a visual calendar similar to a Gannt chart and that will identify conflicts (2 teachers booked in the same room, etc.)

What I have been creating manually is great but I am hoping to automate. My manual calendar is basically:

Top row - Date for each day of the year
First column - Teacher name
When a teach is teaching a class, I use merged cells to block out the teacher's time and note the class name.

For the rooms, same concept but replace teacher name with room name.

I tried to automate this by making a list of classes and using a SUMPRODUCT formula to auto-populate the calendar. This worked okay, but takes too long to calculate. Here is my formula:

=SUMPRODUCT((TrainingEndDate>=O$1)*(TrainingStartDate<=O$1)*(Room=$A65))

O1 = Current date
A65 = Room name

Unfortunately, this calculation in so many cells takes HOURS to run.

Any ideas?
 
I did do a pivot table, but my boss likes the gannt chart type of style, it's easier to visualize what is going on.
 
Upvote 0

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