dblackwood
New Member
- Joined
- Sep 27, 2019
- Messages
- 1
Hello,
I have a problem that I cannot solve... I have a dataset that includes an "Arrival Time", an "Exit Time", and a calculated "Hours in Department". I am trying to calculate to number of visits that are currently in the department at each hour of the day.
Example: I have 3 visits that come in at 1:00 and they stay for 3 hours, I have 2 visits that come in at 2:00 and they stay for 1 hour. The count for 1:00 = 3, 2:00 = 5 (because the 1:00 visits are still present), 3:00 = 5, 4:00 = 3, 5:00 = 0.
I have assumed it would involve a countifs or sumproduct function, but I cannot get the duration time to factor.
Thanks for listening and hopefully a solution!!
Sorry, I do not have permissions to attach a example file at this time.
David
I have a problem that I cannot solve... I have a dataset that includes an "Arrival Time", an "Exit Time", and a calculated "Hours in Department". I am trying to calculate to number of visits that are currently in the department at each hour of the day.
Example: I have 3 visits that come in at 1:00 and they stay for 3 hours, I have 2 visits that come in at 2:00 and they stay for 1 hour. The count for 1:00 = 3, 2:00 = 5 (because the 1:00 visits are still present), 3:00 = 5, 4:00 = 3, 5:00 = 0.
I have assumed it would involve a countifs or sumproduct function, but I cannot get the duration time to factor.
Thanks for listening and hopefully a solution!!
Sorry, I do not have permissions to attach a example file at this time.
David