vinvinvin123
New Member
- Joined
- Jul 19, 2017
- Messages
- 16
Hello!
Here is my formula..
=IF($A$2>DATE(2017,MONTH(L$3&"/1")+1,1),0,($D78-L76+L77))
A2 = today's date
Column D = stock
L76 = monthly forecast
L77 = deliveries due in month
L78 contains the above formula & as is referred to as the 'availability'
So basically if the month is in the past the availability figure can be 0 but if it is in the future then (stock - forecast + deliveries) = availability
This falls down & I get negative availability if there is a delivery due in the previous month but the stock figure is still 0 as it hasn't arrived yet.
For example:
August: stock= 0, forecast = 0, deliveries= 30,000 therefore availability = 30,000.
September: stock=0 (still 0 as this is the present day figure, the delivery is in the future), forecast = 5,000, deliveries =0. Using my current formula I get availability = -5,000 but it should be 25,000
So I need a formula that says:
(stock - forecast + deliveries) = availability BUT if the previous month Availability > 0 THEN (previous months availability - forecast + deliveries) = availability
Sorry if that makes no sense.. please post questions & I will try to clarify if so.
I am still trying to get the hang of explaining exactly what I am trying to do!
Here is my formula..
=IF($A$2>DATE(2017,MONTH(L$3&"/1")+1,1),0,($D78-L76+L77))
A2 = today's date
Column D = stock
L76 = monthly forecast
L77 = deliveries due in month
L78 contains the above formula & as is referred to as the 'availability'
So basically if the month is in the past the availability figure can be 0 but if it is in the future then (stock - forecast + deliveries) = availability
This falls down & I get negative availability if there is a delivery due in the previous month but the stock figure is still 0 as it hasn't arrived yet.
For example:
August: stock= 0, forecast = 0, deliveries= 30,000 therefore availability = 30,000.
September: stock=0 (still 0 as this is the present day figure, the delivery is in the future), forecast = 5,000, deliveries =0. Using my current formula I get availability = -5,000 but it should be 25,000
So I need a formula that says:
(stock - forecast + deliveries) = availability BUT if the previous month Availability > 0 THEN (previous months availability - forecast + deliveries) = availability
Sorry if that makes no sense.. please post questions & I will try to clarify if so.
I am still trying to get the hang of explaining exactly what I am trying to do!