Inventory: FIFO, LIFO and Average Cost

pegbol

Board Regular
Joined
Jan 7, 2005
Messages
192
.
.

Hello,

I need to compare and calculate the Unit Cost Price of my Inventory based on the 3 methods of inventory valuation: FIFO (First In, First Out), LIFO (Last In, First Out) and Average Cost.

Next, I enclose 3 snapshots of each method with the results required (columns color yellow).

Thanks in advance for your help.

regards,
Pedro
.
.
 
Thank you very much for your help.
Its works great but unfortunately I have many type of items not only one.
In column N is the criteria .I tried something with if n = n+1 then run macro but doesn’t work.:banghead:
I will be grateful for any help.
Thanks a lot
Bobo
P.S. I'd like to attach the fold but I don't know how
 
Upvote 0

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
Hi All

Tell me somebody how to use this script?
I've inserted it in the macro but i got:
"run-time error '9' subscript out of range"


Thanks,
 
Upvote 0
I've sent you an Excel file following the sample.
- Everything have to be the same to the Sheet naming
- activate Macro scripting in Excel when it open or else it would not work.
That's all

Hi All

Tell me somebody how to use this script?
I've inserted it in the macro but i got:
"run-time error '9' subscript out of range"

or send me the template by mail: tsagareishvili@gmail.com

Thanks,

 
Upvote 0
I have found this code to be very useful. As life would have it, the user moved the target. I have expanded the dataset so that there is a balance and cost for every day. What the user would like to do is reset the cost on the first day of each year. Thus the previous year would capture the cost and value would be realized in that year. Then on the first of the year, the cost would be the value at the end of the previous year.

I think this is doable but just wasn't sure how.

any help would be greatly appreciated

tripleg
 
Upvote 0
OK
If any bugs, please let me know.

Dear Mr. Jindon

If I want to add more than one items in the same database, how can I apply your FIFO code

FIFO_VBA.xlsm
ABCDEFGHIJKL
5QUANTITYCOST
6NDATEItemDESCRIPTIONUNIT PRICEINOUTBALANCEUNIT COSTDEBITCREDITBALANCE
7101/09/2005Item1BEG. BAL.10100100100001000
8212/09/2005Item1IN20300400600007000
9312/09/2005Item1IN251705704250011250
10412/09/2005Item1OUT5052010050010750
11523/09/2005Item1OUT37015018.91891892070003750
12627/09/2005Item1IN3070085021000024750
13729/09/2005Item1OUT45040028.3333333301275012000
14829/09/2005Item1OUT25015030075004500
15902/10/2005Item1IN253204708000012500
161003/10/2005Item1OUT50420300150011000
17101/09/2005Item2BEG. BAL.10100100100001000
18212/09/2005Item2IN20300400600007000
19312/09/2005Item2IN251705704250011250
20412/09/2005Item2OUT5052010050010750
21523/09/2005Item2OUT37015018.91891892070003750
22627/09/2005Item2IN3070085021000024750
23729/09/2005Item2OUT45040028.3333333301275012000
24829/09/2005Item2OUT25015030075004500
25902/10/2005Item2IN253204708000012500
261003/10/2005Item2OUT50420300150011000
FIFO
Cell Formulas
RangeFormula
J7:J26J7=F7*E7
K7:K26K7=G7*I7
L7,L17,H7,H17L7=J7
L8:L16,L18:L26,H8:H16,H18:H26L8=L7+J8-K8
I10,I20I10=E7
I11,I21I11=((50*E7)+(300*E8)+(20*E9))/G11
I13,I23I13=((150*E9)+(300*E12))/G13
I14,I24I14=E12
I16,I26I16=E12
 
Upvote 0

Forum statistics

Threads
1,223,958
Messages
6,175,633
Members
452,661
Latest member
Nonhle

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