Hi everybody,
I am trying to work out a way to calculate the value of inventory assuming the earliest inventory received is issued out first. I have pasted in a sample dataset below as a guide.
Per the below, the fuel issues on November 1st and 2nd would be costed at $0.90, and the issue on November 3rd at a combination of $0.90, and $0.70 from the fuel delivery on November 2nd. The next issue on November 3rd would be priced at $0.70.
I have tried and failed to figure out how to do this myself. Is anyone able to offer any help or advice?
Many thanks
[TABLE="width: 794"]
<tbody>[TR]
[TD="colspan: 7"]Fuel out[/TD]
[TD][/TD]
[TD="colspan: 7"]Fuel in[/TD]
[/TR]
[TR]
[TD]Date[/TD]
[TD][/TD]
[TD]Amount[/TD]
[TD][/TD]
[TD]Cumulative[/TD]
[TD][/TD]
[TD]Price[/TD]
[TD][/TD]
[TD]Date[/TD]
[TD][/TD]
[TD]Amount[/TD]
[TD][/TD]
[TD]Cumulative[/TD]
[TD][/TD]
[TD]Price[/TD]
[/TR]
[TR]
[TD]01/11/2017[/TD]
[TD][/TD]
[TD]69[/TD]
[TD][/TD]
[TD]69[/TD]
[TD][/TD]
[TD]?[/TD]
[TD][/TD]
[TD="align: right"]31/10/2017[/TD]
[TD][/TD]
[TD]250[/TD]
[TD][/TD]
[TD]250[/TD]
[TD][/TD]
[TD]0.9[/TD]
[/TR]
[TR]
[TD]01/11/2017[/TD]
[TD][/TD]
[TD]21[/TD]
[TD][/TD]
[TD]90[/TD]
[TD][/TD]
[TD]?[/TD]
[TD][/TD]
[TD="align: right"]02/11/2017[/TD]
[TD][/TD]
[TD]300[/TD]
[TD][/TD]
[TD]550[/TD]
[TD][/TD]
[TD]0.7[/TD]
[/TR]
[TR]
[TD]01/11/2017[/TD]
[TD][/TD]
[TD]14[/TD]
[TD][/TD]
[TD]104[/TD]
[TD][/TD]
[TD]?[/TD]
[TD][/TD]
[TD="align: right"]08/11/2017[/TD]
[TD][/TD]
[TD]250[/TD]
[TD][/TD]
[TD]800[/TD]
[TD][/TD]
[TD]0.8[/TD]
[/TR]
[TR]
[TD]01/11/2017[/TD]
[TD][/TD]
[TD]35[/TD]
[TD][/TD]
[TD]139[/TD]
[TD][/TD]
[TD]?[/TD]
[TD][/TD]
[TD="align: right"]13/11/2017[/TD]
[TD][/TD]
[TD]300[/TD]
[TD][/TD]
[TD]1100[/TD]
[TD][/TD]
[TD]0.6[/TD]
[/TR]
[TR]
[TD]02/11/2017[/TD]
[TD][/TD]
[TD]78[/TD]
[TD][/TD]
[TD]217[/TD]
[TD][/TD]
[TD]?[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]03/11/2017[/TD]
[TD][/TD]
[TD]40[/TD]
[TD][/TD]
[TD]257[/TD]
[TD][/TD]
[TD]?[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]05/11/2017[/TD]
[TD][/TD]
[TD]94[/TD]
[TD][/TD]
[TD]351[/TD]
[TD][/TD]
[TD]?[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]05/11/2017[/TD]
[TD][/TD]
[TD]64[/TD]
[TD][/TD]
[TD]415[/TD]
[TD][/TD]
[TD]?[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]07/11/2017[/TD]
[TD][/TD]
[TD]10[/TD]
[TD][/TD]
[TD]425[/TD]
[TD][/TD]
[TD]?[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]08/11/2017[/TD]
[TD][/TD]
[TD]35[/TD]
[TD][/TD]
[TD]460[/TD]
[TD][/TD]
[TD]?[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]08/11/2017[/TD]
[TD][/TD]
[TD]31[/TD]
[TD][/TD]
[TD]491[/TD]
[TD][/TD]
[TD]?[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]08/11/2017[/TD]
[TD][/TD]
[TD]20[/TD]
[TD][/TD]
[TD]511[/TD]
[TD][/TD]
[TD]?[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]09/11/2017[/TD]
[TD][/TD]
[TD]90[/TD]
[TD][/TD]
[TD]601[/TD]
[TD][/TD]
[TD]?[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]12/11/2017[/TD]
[TD][/TD]
[TD]60[/TD]
[TD][/TD]
[TD]661[/TD]
[TD][/TD]
[TD]?[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]12/11/2017[/TD]
[TD][/TD]
[TD]50[/TD]
[TD][/TD]
[TD]711[/TD]
[TD][/TD]
[TD]?[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]13/11/2017[/TD]
[TD][/TD]
[TD]28[/TD]
[TD][/TD]
[TD]739[/TD]
[TD][/TD]
[TD]?[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]13/11/2017[/TD]
[TD][/TD]
[TD]32[/TD]
[TD][/TD]
[TD]771[/TD]
[TD][/TD]
[TD]?[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]14/11/2017[/TD]
[TD][/TD]
[TD]12[/TD]
[TD][/TD]
[TD]783[/TD]
[TD][/TD]
[TD]?[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]14/11/2017[/TD]
[TD][/TD]
[TD]54[/TD]
[TD][/TD]
[TD]837[/TD]
[TD][/TD]
[TD]?[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I am trying to work out a way to calculate the value of inventory assuming the earliest inventory received is issued out first. I have pasted in a sample dataset below as a guide.
Per the below, the fuel issues on November 1st and 2nd would be costed at $0.90, and the issue on November 3rd at a combination of $0.90, and $0.70 from the fuel delivery on November 2nd. The next issue on November 3rd would be priced at $0.70.
I have tried and failed to figure out how to do this myself. Is anyone able to offer any help or advice?
Many thanks
[TABLE="width: 794"]
<tbody>[TR]
[TD="colspan: 7"]Fuel out[/TD]
[TD][/TD]
[TD="colspan: 7"]Fuel in[/TD]
[/TR]
[TR]
[TD]Date[/TD]
[TD][/TD]
[TD]Amount[/TD]
[TD][/TD]
[TD]Cumulative[/TD]
[TD][/TD]
[TD]Price[/TD]
[TD][/TD]
[TD]Date[/TD]
[TD][/TD]
[TD]Amount[/TD]
[TD][/TD]
[TD]Cumulative[/TD]
[TD][/TD]
[TD]Price[/TD]
[/TR]
[TR]
[TD]01/11/2017[/TD]
[TD][/TD]
[TD]69[/TD]
[TD][/TD]
[TD]69[/TD]
[TD][/TD]
[TD]?[/TD]
[TD][/TD]
[TD="align: right"]31/10/2017[/TD]
[TD][/TD]
[TD]250[/TD]
[TD][/TD]
[TD]250[/TD]
[TD][/TD]
[TD]0.9[/TD]
[/TR]
[TR]
[TD]01/11/2017[/TD]
[TD][/TD]
[TD]21[/TD]
[TD][/TD]
[TD]90[/TD]
[TD][/TD]
[TD]?[/TD]
[TD][/TD]
[TD="align: right"]02/11/2017[/TD]
[TD][/TD]
[TD]300[/TD]
[TD][/TD]
[TD]550[/TD]
[TD][/TD]
[TD]0.7[/TD]
[/TR]
[TR]
[TD]01/11/2017[/TD]
[TD][/TD]
[TD]14[/TD]
[TD][/TD]
[TD]104[/TD]
[TD][/TD]
[TD]?[/TD]
[TD][/TD]
[TD="align: right"]08/11/2017[/TD]
[TD][/TD]
[TD]250[/TD]
[TD][/TD]
[TD]800[/TD]
[TD][/TD]
[TD]0.8[/TD]
[/TR]
[TR]
[TD]01/11/2017[/TD]
[TD][/TD]
[TD]35[/TD]
[TD][/TD]
[TD]139[/TD]
[TD][/TD]
[TD]?[/TD]
[TD][/TD]
[TD="align: right"]13/11/2017[/TD]
[TD][/TD]
[TD]300[/TD]
[TD][/TD]
[TD]1100[/TD]
[TD][/TD]
[TD]0.6[/TD]
[/TR]
[TR]
[TD]02/11/2017[/TD]
[TD][/TD]
[TD]78[/TD]
[TD][/TD]
[TD]217[/TD]
[TD][/TD]
[TD]?[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]03/11/2017[/TD]
[TD][/TD]
[TD]40[/TD]
[TD][/TD]
[TD]257[/TD]
[TD][/TD]
[TD]?[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]05/11/2017[/TD]
[TD][/TD]
[TD]94[/TD]
[TD][/TD]
[TD]351[/TD]
[TD][/TD]
[TD]?[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]05/11/2017[/TD]
[TD][/TD]
[TD]64[/TD]
[TD][/TD]
[TD]415[/TD]
[TD][/TD]
[TD]?[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]07/11/2017[/TD]
[TD][/TD]
[TD]10[/TD]
[TD][/TD]
[TD]425[/TD]
[TD][/TD]
[TD]?[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]08/11/2017[/TD]
[TD][/TD]
[TD]35[/TD]
[TD][/TD]
[TD]460[/TD]
[TD][/TD]
[TD]?[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]08/11/2017[/TD]
[TD][/TD]
[TD]31[/TD]
[TD][/TD]
[TD]491[/TD]
[TD][/TD]
[TD]?[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]08/11/2017[/TD]
[TD][/TD]
[TD]20[/TD]
[TD][/TD]
[TD]511[/TD]
[TD][/TD]
[TD]?[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]09/11/2017[/TD]
[TD][/TD]
[TD]90[/TD]
[TD][/TD]
[TD]601[/TD]
[TD][/TD]
[TD]?[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]12/11/2017[/TD]
[TD][/TD]
[TD]60[/TD]
[TD][/TD]
[TD]661[/TD]
[TD][/TD]
[TD]?[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]12/11/2017[/TD]
[TD][/TD]
[TD]50[/TD]
[TD][/TD]
[TD]711[/TD]
[TD][/TD]
[TD]?[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]13/11/2017[/TD]
[TD][/TD]
[TD]28[/TD]
[TD][/TD]
[TD]739[/TD]
[TD][/TD]
[TD]?[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]13/11/2017[/TD]
[TD][/TD]
[TD]32[/TD]
[TD][/TD]
[TD]771[/TD]
[TD][/TD]
[TD]?[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]14/11/2017[/TD]
[TD][/TD]
[TD]12[/TD]
[TD][/TD]
[TD]783[/TD]
[TD][/TD]
[TD]?[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]14/11/2017[/TD]
[TD][/TD]
[TD]54[/TD]
[TD][/TD]
[TD]837[/TD]
[TD][/TD]
[TD]?[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]