Need a bit of help with this. Doing a project for a made up hotel, in essence I have 3 columns, Arrival date, leave date, and rate.
Arrival date and leave date are self explanatory. The rate is either: "EB", "NP" or "WI", and the rate is decided based on when the room was booked, but is not really relevant.
What i need to do is count up how many rooms are booked on a given day, and of those booked on that day how many are "EB", for example.
I have a solution, but it is impractical. I have used the conditional sum wizard, and a list of hidden numbers to solve the problem, but i am trying to change it to a better formulae.
A big problem is that I am using dates. I have a list of dates 30 long that need finding out and along with three rates it makes 90 formulae, each one with 2 dates in them that need changing by hand, 180 changes that i could really do without.
i was hoping you could help me.
Below is a mock up of the table of data.
Arrival date Leave Date Rate
30/11/2008 01/12/2008 NP
30/11/2008 01/12/2008 EB
29/11/2008 01/12/2008 NP
29/11/2008 30/11/2008 WI
29/11/2008 30/11/2008 NP
28/11/2008 01/12/2008 NP
28/11/2008 01/12/2008 EB
28/11/2008 01/12/2008 EB
28/11/2008 01/12/2008 EB
28/11/2008 30/11/2008 EB
28/11/2008 30/11/2008 EB
28/11/2008 29/11/2008 WI
28/11/2008 29/11/2008 WI
27/11/2008 02/12/2008 EB
27/11/2008 01/12/2008 NP
27/11/2008 01/12/2008 EB
27/11/2008 30/11/2008 EB
26/11/2008 02/12/2008 EB
26/11/2008 01/12/2008 EB
26/11/2008 30/11/2008 NP
26/11/2008 29/11/2008 EB
The actual formulae will go on a different sheet, in a table
Date EB Rooms NP Rooms WI Rooms
30/11/2008
29/11/2008
28/11/2008
27/11/2008
26/11/2008
25/11/2008
24/11/2008
I really need help with it and would be glad of any.
Thanks,
Weazel
Also, it would be even better if a formulae could be copied and pasted down the columns, going along is no problem as there are only 3 columns.
Arrival date and leave date are self explanatory. The rate is either: "EB", "NP" or "WI", and the rate is decided based on when the room was booked, but is not really relevant.
What i need to do is count up how many rooms are booked on a given day, and of those booked on that day how many are "EB", for example.
I have a solution, but it is impractical. I have used the conditional sum wizard, and a list of hidden numbers to solve the problem, but i am trying to change it to a better formulae.
A big problem is that I am using dates. I have a list of dates 30 long that need finding out and along with three rates it makes 90 formulae, each one with 2 dates in them that need changing by hand, 180 changes that i could really do without.
i was hoping you could help me.
Below is a mock up of the table of data.
Arrival date Leave Date Rate
30/11/2008 01/12/2008 NP
30/11/2008 01/12/2008 EB
29/11/2008 01/12/2008 NP
29/11/2008 30/11/2008 WI
29/11/2008 30/11/2008 NP
28/11/2008 01/12/2008 NP
28/11/2008 01/12/2008 EB
28/11/2008 01/12/2008 EB
28/11/2008 01/12/2008 EB
28/11/2008 30/11/2008 EB
28/11/2008 30/11/2008 EB
28/11/2008 29/11/2008 WI
28/11/2008 29/11/2008 WI
27/11/2008 02/12/2008 EB
27/11/2008 01/12/2008 NP
27/11/2008 01/12/2008 EB
27/11/2008 30/11/2008 EB
26/11/2008 02/12/2008 EB
26/11/2008 01/12/2008 EB
26/11/2008 30/11/2008 NP
26/11/2008 29/11/2008 EB
The actual formulae will go on a different sheet, in a table
Date EB Rooms NP Rooms WI Rooms
30/11/2008
29/11/2008
28/11/2008
27/11/2008
26/11/2008
25/11/2008
24/11/2008
I really need help with it and would be glad of any.
Thanks,
Weazel
Also, it would be even better if a formulae could be copied and pasted down the columns, going along is no problem as there are only 3 columns.
Last edited: