I hope I am not misusing this forum, but the first responses I got was so good that they got me very excited about possibilities in Excel and in solving and improving what i am working on.
Thus I have one follow up query;
How can I find:
1. Occupancy per room for day of the week(Monday to Sunday), and a summary of occupancy per room for the month
(displayed in a separate sheet)
2. Occupancy per room type per month
(displayed in a separate sheet)
Room standard Room type
STD SGL
SUP TWN
DLX DBL
TPL
I forgot, I should probably have added the result:
<table style="padding-right: 2pt; padding-left: 2pt; font-size: 11pt; font-family: Calibri,Arial; background-color: rgb(255, 255, 255);" border="1" cellpadding="0" cellspacing="0"> <tbody> <tr style="font-weight: bold; font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;"> <td>
</td> <td>A</td> <td>B</td> <td>C</td> <td>D</td></tr> <tr style="height: 18px;"> <td style="font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;">1</td> <td style="font-size: 8pt; font-family: Arial; background-color: rgb(192, 192, 192); text-align: center;">ROOM</td> <td style="font-size: 10pt; font-family: Arial; background-color: rgb(153, 204, 255);">Friday 22.4.2011</td> <td style="font-size: 10pt; font-family: Arial; background-color: rgb(153, 204, 255);">Saturday 23.04.2011</td> <td style="font-size: 10pt; font-family: Arial; background-color: rgb(153, 204, 255);">Sunday 24.04.2011</td></tr> <tr style="height: 18px;"> <td style="font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;">2</td> <td style="font-size: 8pt; font-family: Arial; background-color: rgb(192, 192, 192); text-align: left;">Room 001 SUP TWN</td> <td style="font-size: 10pt; font-family: Arial; background-color: rgb(255, 255, 0);">Mr. Hansen Dlx Dbl %55</td> <td style="font-size: 10pt; font-family: Arial; background-color: rgb(255, 0, 0);">Mr. Hansen Dlx Dbl %55</td> <td style="font-size: 10pt; font-family: Arial;"> </td></tr> <tr style="height: 18px;"> <td style="font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;">3</td> <td style="font-size: 8pt; font-family: Arial; background-color: rgb(192, 192, 192); text-align: left;">Room 002 SUP DBL</td> <td style="font-size: 10pt; font-family: Arial; background-color: rgb(255, 255, 0);">Mr. Olsen Sup Sgl %45</td> <td style="font-size: 10pt; font-family: Arial; background-color: rgb(255, 0, 0);">Mr. Olsen Sup Sgl %45</td> <td style="font-size: 10pt; font-family: Arial;"> </td></tr> <tr style="height: 18px;"> <td style="font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;">4</td> <td style="font-size: 8pt; font-family: Arial; background-color: rgb(192, 192, 192); text-align: left;">Room 101 STD TWN</td> <td style="font-size: 10pt; font-family: Arial; background-color: rgb(255, 0, 0);">Mrs. Simpson Std Sgl %40</td> <td style="font-size: 10pt; font-family: Arial;"> </td> <td style="font-size: 10pt; font-family: Arial;"> </td></tr> <tr style="height: 18px;"> <td style="font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;">5</td> <td style="font-size: 8pt; font-family: Arial; background-color: rgb(192, 192, 192); text-align: left;">Room 102 DLX TWN</td> <td style="font-size: 10pt; font-family: Arial; background-color: rgb(0, 255, 0);">Robert Smith TWN %43.25</td> <td style="font-size: 10pt; font-family: Arial; background-color: rgb(255, 255, 0);">Robert Smith TWN %43.25</td> <td style="font-size: 10pt; font-family: Arial; background-color: rgb(255, 255, 0);">Robert Smith TWN %43.25</td></tr> <tr style="height: 18px;"> <td style="font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;">6</td> <td style="font-size: 8pt; font-family: Arial; background-color: rgb(192, 192, 192); text-align: left;">Room 201 DLX DBL</td> <td style="font-size: 10pt; font-family: Arial;"> </td> <td style="font-size: 10pt; font-family: Arial; background-color: rgb(242, 42, 204);">Service</td> <td style="font-size: 10pt; font-family: Arial;"> </td></tr> <tr style="height: 18px;"> <td style="font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;">7</td> <td style="font-size: 8pt; font-family: Arial; background-color: rgb(192, 192, 192); text-align: left;">Room 202 SUP DBL</td> <td style="font-size: 10pt; font-family: Arial; background-color: rgb(255, 255, 0);">Maria M Sgl %45</td> <td style="font-size: 10pt; font-family: Arial; background-color: rgb(255, 255, 0);">Maria M Sgl %45</td> <td style="font-size: 10pt; font-family: Arial; background-color: rgb(255, 0, 0);">Maria M Sgl %45</td></tr> <tr style="height: 18px;"> <td style="font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;">8</td> <td style="font-size: 8pt; font-family: Arial; background-color: rgb(192, 192, 192); text-align: left;">Room 301 STD DBL</td> <td style="font-size: 10pt; font-family: Arial; background-color: rgb(255, 255, 0);">Fred Olsen</td> <td style="font-size: 10pt; font-family: Arial; background-color: rgb(255, 255, 0);">Fred Olsen %45</td> <td style="font-size: 10pt; font-family: Arial; background-color: rgb(255, 255, 0);">Fred Olsen %45</td></tr> <tr style="height: 18px;"> <td style="font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;">9</td> <td> </td> <td> </td> <td> </td> <td> </td></tr> <tr style="height: 18px;"> <td style="font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;">10</td> <td>Total income</td> <td style="text-align: right;">228.25</td> <td style="text-align: right;">233.25</td> <td style="text-align: right;">133.25</td></tr> <tr style="height: 18px;"> <td style="font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;">11</td> <td>Average Rate</td> <td style="text-align: right;">38.04</td> <td style="text-align: right;">46.65</td> <td style="text-align: right;">44.42</td></tr> <tr style="height: 18px;"> <td style="font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;">12</td> <td> </td> <td style="font-size: 10pt; font-family: Arial;"> </td> <td> </td> <td> </td></tr> <tr style="height: 18px;"> <td style="font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;">13</td> <td>Occupied rooms</td> <td style="text-align: right;">6</td> <td style="text-align: right;">5</td> <td style="text-align: right;">3</td></tr> <tr style="height: 18px;"> <td style="font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;">14</td> <td>Available rooms</td> <td style="text-align: right;">1</td> <td style="text-align: right;">1</td> <td style="text-align: right;">4</td></tr> <tr style="height: 18px;"> <td style="font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;">15</td> <td>Occupancy rate</td> <td style="text-align: right;">75%</td> <td style="text-align: right;">63%</td> <td style="text-align: right;">38%</td></tr></tbody></table>
<table style="font-size: 10pt; border-color: rgb(0, 255, 0); color: rgb(0, 0, 0); border-style: groove; font-family: Arial; background-color: rgb(255, 252, 249);"> <tbody> <tr> <td>Spreadsheet Formulas</td></tr> <tr> <td> <table style="font-size: 9pt; font-family: Arial;" border="1" cellpadding="2" cellspacing="0"> <tbody> <tr style="font-size: 10pt; background-color: rgb(202, 202, 202);"> <td>Cell</td> <td>Formula</td></tr> <tr> <td>B10</td> <td>=SUMPRODUCT(--(REPLACE(B1:B8,1,FIND("%",B1:B8&"%"),"0")))</td></tr> <tr> <td>B13</td> <td>=7-COUNTBLANK(B2:B8)-COUNTIF(B2:B8,"Service")</td></tr> <tr> <td>B14</td> <td>=(7-COUNTIF(B2:B8,"Service"))-B13</td></tr></tbody></table></td></tr></tbody></table>
<table style="font-size: 10pt; border-color: rgb(255, 0, 0); border-style: groove; font-family: Arial; background-color: rgb(255, 252, 249);"> <tbody> <tr> <td>Conditional formatting </td></tr> <tr> <td> <table style="padding-right: 2pt; padding-left: 2pt; font-size: 10pt; font-family: Arial;" border="1" cellpadding="0" cellspacing="0"> <tbody> <tr> <td>Cell</td> <td>Nr.: / Condition</td> <td>Format</td></tr> <tr> <td>B8</td> <td>1. / Formula is =AND(B2<>"",B2<>"Service",OR(REPLACE(B2,1,FIND("%",B2&"%"),0)+0<10,REPLACE(B2,1,FIND("%",B2&"%"),0)+0>90))</td> <td style="background-color: rgb(0, 0, 0);">Abc</td></tr></tbody></table></td></tr></tbody></table>
Best regards
Ken