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

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
Here is the example organized:

Average Cost Per Unit 1.142 Inventory Level 25000

[TABLE="class: grid, width: 400"]
<tbody>[TR]
[TD="align: center"]Invoice[/TD]
[TD]Contract[/TD]
[TD]Qty[/TD]
[TD]Price[/TD]
[TD]Total[/TD]
[/TR]
[TR]
[TD]123456[/TD]
[TD][/TD]
[TD]7500[/TD]
[TD]1.08[/TD]
[TD]8100[/TD]
[/TR]
[TR]
[TD]123457[/TD]
[TD][/TD]
[TD]6500[/TD]
[TD]1.15[/TD]
[TD]7475[/TD]
[/TR]
[TR]
[TD]123458[/TD]
[TD]x[/TD]
[TD]7500[/TD]
[TD]1.55[/TD]
[TD]11625[/TD]
[/TR]
[TR]
[TD]123459[/TD]
[TD][/TD]
[TD]8500[/TD]
[TD]1.18[/TD]
[TD]10030[/TD]
[/TR]
[TR]
[TD]123460[/TD]
[TD][/TD]
[TD]7500[/TD]
[TD]1.12[/TD]
[TD]8400[/TD]
[/TR]
[TR]
[TD]123461[/TD]
[TD]x[/TD]
[TD]6500[/TD]
[TD]1.55[/TD]
[TD]10075[/TD]
[/TR]
</tbody>[/TABLE]
2500*1.08= $2,700
$7,475
$11,625
$10,030
$8,400
$28,605 ÷ 25000 = $1.142
 
Upvote 0

Forum statistics

Threads
1,223,234
Messages
6,170,891
Members
452,366
Latest member
TePunaBloke

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