Room Availability Testing - Help please

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

abcdef
1RoomStart DateEnd Daterequired date
2Room101/01/201505/01/201502/01/2015
3Room206/01/201511/01/2015
4Room112/01/201517/01/2015
5
6RoomAvailability
7Room1Booked
8Room2Availiable
9

<tbody>
</tbody>

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!
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
Welcome to the forum!

You could try in cell F7 copied down.

=IF(COUNTIFS(A:A,E7,B:B,"<="&$E$2,C:C,">="&$E$2),"Booked","Available")


Excel 2010
ABCDEF
1RoomStart DateEnd Daterequired date
2Room102/01/201505/01/201502/01/2015
3Room206/01/201511/01/2015
4Room112/01/201517/01/2015
5
6RoomAvailability
7Room1Booked
8Room2Available
Sheet1
Cell Formulas
RangeFormula
F7=IF(COUNTIFS(A:A,E7,B:B,"<="&$E$2,C:C,">="&$E$2),"Booked","Available")
 
Upvote 0
Welcome to the forum!

You could try in cell F7 copied down.

=IF(COUNTIFS(A:A,E7,B:B,"<="&$E$2,C:C,">="&$E$2),"Booked","Available")

Excel 2010
ABCDEF
1RoomStart DateEnd Daterequired date
2Room102/01/201505/01/201502/01/2015
3Room206/01/201511/01/2015
4Room112/01/201517/01/2015
5
6RoomAvailability
7Room1Booked
8Room2Available

<colgroup><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet1

Worksheet Formulas
CellFormula
F7=IF(COUNTIFS(A:A,E7,B:B,"<="&$E$2,C:C,">="&$E$2),"Booked","Available")

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>

That's the solution we have at the moment. However in our actual plan we have a few hundred courses and that would mean scrolling through a few hundred rows as opposed to the 20 rooms we have aviliable.
 
Upvote 0
That's the solution we have at the moment. However in our actual plan we have a few hundred courses and that would mean scrolling through a few hundred rows as opposed to the 20 rooms we have aviliable.

I guess I don't understand then - the formula offered searches all entries in columns A,B and C and can be copied down as far as required.
 
Upvote 0
I guess I don't understand then - the formula offered searches all entries in columns A,B and C and can be copied down as far as required.

Ah, actaully i see how your suggestion works. The issues is that we are limited to Excel 2003, I should have specified that. Thank you for your help, i really wish COUNTIFS were possbile...
 
Upvote 0
You sir are a gent and a scholar! That works perfectly. Now I just need to improve my understanding of sumproduct. Your help is very much appreciated.
 
Upvote 0

Forum statistics

Threads
1,215,128
Messages
6,123,204
Members
449,090
Latest member
bes000

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