EizenSmith
New Member
- Joined
- Feb 18, 2015
- Messages
- 5
My self and a colleague schedule a training plan for our business on a national scale. We are trying to streamline the processes by building the facility to check the availability of rooms based on a date variable we enter. Our issues is that a training room will be used for multiple courses at different times.
From reading around the forums it may be possible to do this using array formulas however we are unable to find anything fit for purpose that we understand. Here is as far as we have gotten
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]a[/TD]
[TD]b[/TD]
[TD]c[/TD]
[TD]d[/TD]
[TD]e[/TD]
[TD]f[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Room[/TD]
[TD]Start Date[/TD]
[TD]End Date[/TD]
[TD][/TD]
[TD]required date[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Room1[/TD]
[TD]01/01/2015[/TD]
[TD]05/01/2015[/TD]
[TD][/TD]
[TD]02/01/2015[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Room2[/TD]
[TD]06/01/2015[/TD]
[TD]11/01/2015[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]Room1[/TD]
[TD]12/01/2015[/TD]
[TD]17/01/2015[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Room[/TD]
[TD]Availability[/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Room1[/TD]
[TD]Booked[/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Room2[/TD]
[TD]Availiable[/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
we have used the following code in cell f7
=IF(AND($e$2>=b2,$e$2 <=c2),"Booked","Available")
The issue here is that we need to duplicate the formula many times for each room when it appears more than once in our plan.
Please could you also explain the mechanics of proposed solutions to aid with our learning.
Apologies we are unable to attach an example (as Mr.Excel has not given us the rights).
Thanks in advance!
From reading around the forums it may be possible to do this using array formulas however we are unable to find anything fit for purpose that we understand. Here is as far as we have gotten
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]a[/TD]
[TD]b[/TD]
[TD]c[/TD]
[TD]d[/TD]
[TD]e[/TD]
[TD]f[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Room[/TD]
[TD]Start Date[/TD]
[TD]End Date[/TD]
[TD][/TD]
[TD]required date[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Room1[/TD]
[TD]01/01/2015[/TD]
[TD]05/01/2015[/TD]
[TD][/TD]
[TD]02/01/2015[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Room2[/TD]
[TD]06/01/2015[/TD]
[TD]11/01/2015[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]Room1[/TD]
[TD]12/01/2015[/TD]
[TD]17/01/2015[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Room[/TD]
[TD]Availability[/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Room1[/TD]
[TD]Booked[/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Room2[/TD]
[TD]Availiable[/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
we have used the following code in cell f7
=IF(AND($e$2>=b2,$e$2 <=c2),"Booked","Available")
The issue here is that we need to duplicate the formula many times for each room when it appears more than once in our plan.
Please could you also explain the mechanics of proposed solutions to aid with our learning.
Apologies we are unable to attach an example (as Mr.Excel has not given us the rights).
Thanks in advance!