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,””)
- excel101Jun 21, 2019Copper Contributor
TwifooHow can I use the formula you provided with a different date range? I tried to do it with a different date range but it is not working.
Thank you again
- TwifooJun 21, 2019Silver ContributorIt depends upon the layout of your data. The formula always conforms to such layout but the logic would remain the same.
- excel101Jun 24, 2019Copper Contributor
Twifoo Twifoo Thank you! Can you elaborate a bit further please. I have used the same formula but it just not working. What do you mean by "data layout" exactly? Do mind looking at the attachment with the new set of dates and the formula please? Thank you again.