Hi,
I recently posted a problem about creating a function for an interactive booking/reservation schedule for an aquatics community center. This is the function that was written for me by an extremely helpful poster called Haseeb:
This code basically took four different variables (Date, Start Time, End Time, Room Type) on one worksheet and linked them to the schedule on another worksheet. Based on the information, it would return a value of 1 or 0, 1 meaning the specific room was available at this time at this date and 0 meaning that it had been booked.
I have two questions as follows(The FIRST question/problem is more important in the sense that that is the feature that I REALLY need. If you can also answer the second question, then you would more than make my day, but the first is what I really need):
1. I've added another variable column to my information worksheets called TENTATIVE. I want to include this in my SUMPRODUCT function so that when the value in this column is equal to "YES", the function will compute the information along with all the other information to return a value of 2 (or any other acceptable number as long as it is different from 0,1,) The objective of this is to be able to then conditionally format the cells with this value to a separate color so that it represents a TENTATIVE booking.
2.The original template that I based my design on used the the SUMPRODUCT function nested in an IF function to do what the formula above does for me. However, the main difference is that the nested IF function would automatically return a value of -1 if a room was double booked (i.e same dates/ times) while the one that I am using right now DOESN'T. I was wondering if it would be possible to do this with the function I'm using now (above)?
Attached below is the said Workbook. You will notice that there are multiple schedules. They all use the same basic SUMPRODUCT function that I posted above, with slight variations to match each schedule. If you're playing around with fixing the problem, you can do it just for one schedule because I can adapt it to suit the others usually without problem.
I tried playing with the function and my final failed brain wave for the first problem was the following:
It did not work. If someone could please help, I would really really appreciate it!
Hope everyone had a good day today.
Sam
Bookmarks