Hi,
As pepe said, you can get the total number of rooms using SUMPRODUCT, though I would start it on 8 Oct, by putting this in E12:
You might also want your table to fill in automatically, using Conditional Formatting. Select your whole table (not the date row - so E3:O9 in your test file), click Conditional Formatting, click 'New Rule' then 'Use a formula to determine which cells to format'. Put this in the formula box:
=AND(E$2>=$B3,E$2<$C3)
Then choose the format you want (green fill). Now your table will colour the booked dates automatically.
(I don't know why you had two cells containing '1' with red fills. If you need this to happen as well, use Cond Form again, choose 'Highlight Cells Rules' then 'Equal To...', enter '1' and choose a Red Fill.)
Hope that helps.
Regards,
Aardigspook
If your problem is solved, please go to 'Thread Tools' above your first post and 'Mark Thread as Solved'.
You don't need to give me rep if I helped, but thanks are appreciated.
Bookmarks