Forum Discussion
excel101
Jun 21, 2019Copper Contributor
Date calculation formula needed for daily pickup
Hello Experts, I am looking for a formula that calculates daily numbers from check-in and check-out dates. I am aware of the basic formula that calculates the total number of days between two dates ...
- Jun 21, 2019
SergeiBaklanThank you so much!
Twifoo
Jun 21, 2019Silver Contributor
It appears that the check-in date is included in, while the check-out date is excluded from, the calculation of total nights. Thus, the formula in E2, copied down rows and across columns, is:
=IF((E$1>=$A2)*(E$1<$B2),
1,””)
=IF((E$1>=$A2)*(E$1<$B2),
1,””)