TripleJays
New Member
- Joined
- Nov 22, 2022
- Messages
- 1
- Office Version
- 365
- Platform
- Windows
Hi all,
I need to calculate storage days for containers being stored in our depot. We bill weekly so if a container is still in storage for the full week of the billing period, I would need a result of 7 days and if it was collected during the week then I need the partial days automatically calculated. If the container was collected prior to the billing period, I need a result of 0.
In this example
* Row16 - correct
* Row17- Should be 7 and then 3 in column x (=10 days)
* Row18 - Should be 2 days
Date in / date out = 1 day
I am using =IF(E16>0,E16-$Y$14 + 1,$Y$15-$Y$14+1). I have spent hours googling, trying to work this out myself and would greatly appreciate any help.
I also have customers that have a number of free days that would be in column c, so if anyone could help including this in the formula too.
Thanks
I need to calculate storage days for containers being stored in our depot. We bill weekly so if a container is still in storage for the full week of the billing period, I would need a result of 7 days and if it was collected during the week then I need the partial days automatically calculated. If the container was collected prior to the billing period, I need a result of 0.
In this example
* Row16 - correct
* Row17- Should be 7 and then 3 in column x (=10 days)
* Row18 - Should be 2 days
Date in / date out = 1 day
I am using =IF(E16>0,E16-$Y$14 + 1,$Y$15-$Y$14+1). I have spent hours googling, trying to work this out myself and would greatly appreciate any help.
I also have customers that have a number of free days that would be in column c, so if anyone could help including this in the formula too.
Thanks