Good Morning everyone
English is not my first language so in advance please do excuse me if I'm not fully understandable =)
here is my problem, half solved :
I have a workbook with many sheets, which includes all the information of the guests and all the transaction of an hotel.
in a first sheet there is name, nationality, room number, check in/out date.... for every guest over a month
One a second sheet, i have the bill from our restaurant with include the following details : room number, date, price, payment type....
Recently my dear and beloved boss asked me the repartitions of the sales by nationality and market segment.
So theoretically it should be possible to do some Vlookup and other, with the complication that the date of sale should be included between the check in and check out date for a particular room. So far, my tentative of using Vlookup have been solved by a #N/A
In another hand i had a result with a IF/AND formula as following
=IF(AND($A8>='Reservation Sumery'!$K$4:$K$691,'FB bill Resume'!$A8<'Reservation Sumery'!$L$4:$L$691,'FB bill Resume'!$B8='Reservation Sumery'!$J$4:$J$691),'Reservation Sumery'!$M$4:$M$691,"")
But there is a problem. Lets say that i have 4 lines (1,2,3 and 4) of bill restaurant with the same date and room number. The formula works ONLY if the information about this room are in same line on the other sheet
So if the room A is on the line n"2 of the reservation sumery, and the bills of this room are on the line n"1,2,3 and 4 of the FB bill resume sheet, i get a result only for the line number 2...
Thanks in advance
Theo
Bookmarks