FIFO - Average Cost Per Unit

schamskevi

New Member
Joined
Mar 3, 2016
Messages
3
Hello,

I am trying to create a function in MS Excel that will find the average cost per unit using the FIFO costing method based on the units in inventory and a purchase ledger (quantity, price, total etc.). If a purchase is marked as contract I would NOT like it included in the average cost per unit.

Here is a simple example:


Average Cost Per Unit 1.142 <<<<<<Custom Function entered here
Inventory Level 25000
Invoice Contract Qty Price Total
123456 7500 1.08 $8,100 2500*1.08= $2,700
123457 6500 1.15 $7,475 $7,475
123458 x 7500 1.55 $11,625
123459 8500 1.18 $10,030 $10,030
123460 7500 1.12 $8,400 $8,400
123461 x 6500 1.55 $10,075
$28,605 ÷ 25000 = $1.142

Any help on this would be fantastic!
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
Here is the example organized:

Average Cost Per Unit 1.142 Inventory Level 25000

InvoiceContractQtyPriceTotal
12345675001.088100
12345765001.157475
123458x75001.5511625
12345985001.1810030
12346075001.128400
123461x65001.5510075

<tbody>
</tbody>
2500*1.08= $2,700
$7,475
$11,625
$10,030
$8,400
$28,605 ÷ 25000 = $1.142
 
Upvote 0

Forum statistics

Threads
1,215,133
Messages
6,123,235
Members
449,092
Latest member
SCleaveland

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top