I'm trying to figure out if there is a more efficient way of calculating the max number of trailers in an area based on arrival and departure. Example below is how i'm currently determining.
<tbody>
</tbody>
In example above I have data of when trailer arrives and departs. I'm using rows E through AA... were I have date with time in hour increments and using using an If formula in cells below those rows =If(E$1>=$B2,if(E$2<=$C2,1,0),0) then summing each column to determine the max peak of trailers in area at that time. Then I have =max(E7:AA...7) were it returns the max trailers.
I would really like to get away from using hourly increments, as Max is not truly accurate, but if I use minutes spread sheet would be more massive than it already is. If possible I would like to input a formula that determines the max so I can get away from adding in the incremental times.
Any considerations and help will be much appreciated.
Thanks
A | B | C | D | E | D | |
1 | Supplier | Arrival Date & Time | Departure Date & Time | Trailer | 4/19/18 01:00:00 | 4/19/18 02:00:00 |
2 | ASD | 4/20/18 0:01:12 | 4/20/18 16:34:33 | A234 | 0 | 0 |
3 | ASD | 4/20/18 11:00:52 | 4/20/18 16:00:00 | A235 | 0 | 0 |
4 | BFB | 4/19/18 01:05:34 | 4/22/18 03:05:56 | B545 | 0 | 1 |
5 | CCC | 4/19/18 05:06:35 | 4/20/18 03:20:36 | C555 | 0 | 0 |
6 | BFB | 4/18/18 00:30:15 | 4/22/18 03:56:45 | B546 | 1 | 1 |
7 | MAX# | TOTAL | 1 | 2 |
<tbody>
</tbody>
In example above I have data of when trailer arrives and departs. I'm using rows E through AA... were I have date with time in hour increments and using using an If formula in cells below those rows =If(E$1>=$B2,if(E$2<=$C2,1,0),0) then summing each column to determine the max peak of trailers in area at that time. Then I have =max(E7:AA...7) were it returns the max trailers.
I would really like to get away from using hourly increments, as Max is not truly accurate, but if I use minutes spread sheet would be more massive than it already is. If possible I would like to input a formula that determines the max so I can get away from adding in the incremental times.
Any considerations and help will be much appreciated.
Thanks