Sep 03 2021 01:38 AM
Sep 03 2021 03:08 AM
Formula for the Count Pax column:
=COUNTIFS(Table2[Check In Date],"<="&[@Date],Table2[Check out Date],">="&[@Date])
I don't understand how you arrived at the numbers in your sample results. On 20-Aug, for example, Person A had already checked out, so only B and C remained, and D checked in, hence I count 3, but you have 4...
I would even argue that you should use
=COUNTIFS(Table2[Check In Date],"<="&[@Date],Table2[Check out Date],">"&[@Date])
if you don't want to count someone on the day they check out.