Forum Discussion

murre34's avatar
murre34
Copper Contributor
Jan 02, 2021
Solved

how to prevent double booking of room in excel

Hi,
i want to make room reservation in excel. But I could not find out how to prevent double booking

I want to be warned when I enter a date range that I have already given for the same room, with data validation!
Can anyone help me please

  • murre34 I suspect that your real life situation is more complicated than just a few rooms and that you allow check-in in the afternoon when a guest checked-out in the morning. The attached workbook contains an approach you might find helpful. The top part contains dynamic array formulae. Your Excel version might not support these. Therefore, I have a more traditional approach in the bottom part of the schedule. Note that I have used named ranges in both methods. Cells with blue-is colour require user input.

     

    Counting double bookings, I believe, is easiest by "calendarising" a reservation day-by-day (0 = free, 1 = booked) and use SUMIF to add up the bookings per room per part of the day (Morning and Afternoon). Anything greater than 1 indicates a double booking. This can then be coloured using CF.

     

    Columns E:F (unhide/hid by pressing the + or - button above column G) are helper columns that add the time portion to the IN and OUT dates. Formulae need to be copied down when inserting/adding rows. 

     

    Now, all of this is just meant to see if this is something you could work with. It could be made to look a lot prettier, but that would require more effort, which I believe, goes beyond the scope of this forum. Moreover, if you are in the hotel business, I guess there must be off-the shelf booking systems that do all you need automatically, without the need to re-invent the wheel in Excel.

4 Replies

  • murre34 

    I did have a quick look and start sketching something out using MS365; no good to you I see.

    One thing that I did implement was to allow the free entry of dates but then to control the assignment of rooms to those still available for the entire period of the booking with data validation.

  • Riny_van_Eekelen's avatar
    Riny_van_Eekelen
    Platinum Contributor

    murre34 I suspect that your real life situation is more complicated than just a few rooms and that you allow check-in in the afternoon when a guest checked-out in the morning. The attached workbook contains an approach you might find helpful. The top part contains dynamic array formulae. Your Excel version might not support these. Therefore, I have a more traditional approach in the bottom part of the schedule. Note that I have used named ranges in both methods. Cells with blue-is colour require user input.

     

    Counting double bookings, I believe, is easiest by "calendarising" a reservation day-by-day (0 = free, 1 = booked) and use SUMIF to add up the bookings per room per part of the day (Morning and Afternoon). Anything greater than 1 indicates a double booking. This can then be coloured using CF.

     

    Columns E:F (unhide/hid by pressing the + or - button above column G) are helper columns that add the time portion to the IN and OUT dates. Formulae need to be copied down when inserting/adding rows. 

     

    Now, all of this is just meant to see if this is something you could work with. It could be made to look a lot prettier, but that would require more effort, which I believe, goes beyond the scope of this forum. Moreover, if you are in the hotel business, I guess there must be off-the shelf booking systems that do all you need automatically, without the need to re-invent the wheel in Excel.

    • murre34's avatar
      murre34
      Copper Contributor

      Riny_van_Eekelen i am very grateful for your support, i am sorry that i couldn't respond your message earlier. I will check it out your file and will try to  adapt to my system. I have excel 2016. Do you mind if i asking you questions if i have a problem with these formulas?

Resources