FIFO Inventory Tracking

excelhelp243

New Member
Joined
Feb 10, 2015
Messages
5
I have multiple products with days until next shipment, inventory, and the start of a formula but I'm stuck. I don't know what to do to subtract the outbound inventory from a FIFO standpoint and keep my days in inventory calculation correct.

To best summarize where I'm at I have written some nested IF functions

The first one is if I have more inventory since the last load (meaning that my inventory today is greater than the last date of inventory) Then I add the last number of days in inventory to the new number of days.

The next portion is if inventory remains the same. Then I add the number of days since the last shipment and the cumulative days in inventory so far.

The next portion is if inventory drops to zero. Then we no longer have any days in inventory so it is 0 automatically.

The last portion is what I am struggling with. I need the new portion of inbound inventory to subtract from the oldest amount of inventory and then subtract the number of days the oldest was in inventory from my number of days in inventory.

My current formula is IF(CurrentRunningInventory>LastRunningInventory,LastDaysinInventory+CurrentDaysinInventroy,IF(CurrentRunningInventory=LastRunningInventory,LastDaysinInventory+RunningDaysinInventory,IF(CurrentRunningInventory=0,0,?)))

best example is below

Widget 1 10 days 25 widgets 10 total days in inventory
Widget 1 5 days 30 widgets 15 total days in inventory
Widget 1 20 days 10 widgets 35 total days in inventory
Widget 1 5 days -15 widgets 40 days in inventory
Widget 1 5 days -40 widgets 30 days in inventory

The italics part are what my formula cannot return correctly.
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
Widget 1 10 days 25 widgets 10 total days in inventory

infers to me that 2.5 widgets are used every day

can you state the issue more clearly please
 
Upvote 0
Sorry if I wasn't clear. Here is a much more organized example with my actual numbers. This is just an inventory location so there is not consumption just shipping in and shipping out. Formulas used in this are (from row 3 '8/8/2014 Apples')

Days until next Shipment: =DATEDIF(A3,A4,"d")
Inventory: =IF(E3=0,0,DATEDIF(A3,A4,"d"))
Days in Inventory: =IF(E3>E2,D2+D3,IF(E3=E2,D3+F2,IF(E3=0,0,"*")))

[table="width: 500"]
[tr]
[td]Date[/td]
[td]In/Out Tons[/td]
[td]Commodity[/td]
[td]Days until next shipment[/td]
[td]Inventory[/td]
[td]Days in Inventory[/td]
[/tr]
[tr]
[td]5/12/2014[/td]
[td]1.48[/td]
[td]Apples[/td]
[td]88[/td]
[td]1.48[/td]
[td]88[/td]
[/tr]
[tr]
[td]8/8/2014[/td]
[td]2.82[/td]
[td]Apples[/td]
[td]18[/td]
[td]4.30[/td]
[td]106[/td]
[/tr]
[tr]
[td]8/26/2014[/td]
[td](1.48)[/td]
[td]Apples[/td]
[td]7[/td]
[td]2.82[/td]
[td]*[/td]
[/tr]
[tr]
[td]9/2/2014[/td]
[td](2.82)[/td]
[td]Apples[/td]
[td]161[/td]
[td]0.00[/td]
[td]0[/td]
[/tr]
[tr]
[td]End of Apples Inventory[/td]
[td][/td]
[td][/td]
[td][/td]
[td]0.00[/td]
[td]0[/td]
[/tr]
[tr]
[td]3/20/2013[/td]
[td]3.77[/td]
[td]Bananas[/td]
[td]91[/td]
[td]3.77[/td]
[td]91[/td]
[/tr]
[tr]
[td]6/19/2013[/td]
[td](3.77)[/td]
[td]Bananas[/td]
[td]0[/td]
[td]0.00[/td]
[td]0[/td]
[/tr]
[tr]
[td]9/3/2013[/td]
[td]15.10[/td]
[td]Bananas[/td]
[td]13[/td]
[td]15.10[/td]
[td]13[/td]
[/tr]
[tr]
[td]9/16/2013[/td]
[td]16.52[/td]
[td]Bananas[/td]
[td]0[/td]
[td]31.62[/td]
[td]13[/td]
[/tr]
[/table]

Is this more clear? The * is where I cannot figure out the right formula.
 
Upvote 0
[TABLE="class: cms_table, width: 500"]
<tbody>[TR]
[TD]Date[/TD]
[TD]In/Out Tons[/TD]
[TD]Commodity[/TD]
[TD]Days until next shipment[/TD]
[TD]Inventory[/TD]
[TD]Days in Inventory[/TD]
[/TR]
[TR]
[TD]5/12/2014[/TD]
[TD]1.48[/TD]
[TD]Apples[/TD]
[TD]88[/TD]
[TD]1.48[/TD]
[TD]88

so you have 1.48 tons of apples in stock 5/12/2014

how is this translated into days

or are you just trying to record stock levels rather than how long stock will last with a predicted demand

[/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0
[TABLE="width: 821"]
<tbody>[TR]
[TD]Date[/TD]
[TD]In/Out Tons[/TD]
[TD]Commodity[/TD]
[TD]Days until next shipment[/TD]
[TD]Inventory[/TD]
[TD]Days in Inventory[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]09 Feb 14[/TD]
[TD="align: right"]1.48[/TD]
[TD]Apples[/TD]
[TD="align: right"]167[/TD]
[TD="align: right"]1.48[/TD]
[TD="align: right"]167[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]26 Jul 14[/TD]
[TD="align: right"]2.82[/TD]
[TD]Apples[/TD]
[TD="align: right"]13[/TD]
[TD="align: right"]4.3[/TD]
[TD="align: right"]13[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]08 Aug 14[/TD]
[TD="align: right"]-1.48[/TD]
[TD]Apples[/TD]
[TD="align: right"]119[/TD]
[TD="align: right"]2.82[/TD]
[TD="align: right"]119[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]05 Dec 14[/TD]
[TD="align: right"]-2.82[/TD]
[TD]Apples[/TD]
[TD][/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD="colspan: 3"]I have changed the date order with newest item last[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD="colspan: 3"]you cannot put anything in the days to next shipment column for 5 dec 14[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD="colspan: 3"]unless you work with planned next shipment[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD="colspan: 2"]so you had 1.48 tons for 167 days[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]4.3 tons for 13 days[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD="colspan: 2"]2.82 tons for 119 days[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD="colspan: 2"]and zero inventory from 5/12/14[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD="colspan: 2"]do you need col D and col F ?[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0
[table="width: 821"]
<tbody>[tr]
[td]Date[/td]
[td]In/Out Tons[/td]
[td]Commodity[/td]
[td]Days until next shipment[/td]
[td]Inventory[/td]
[td]Age of OLDEST Inventory[/td]
[/tr]
[TR]
[TD]09 Feb 14[/TD]
[TD]1.48[/TD]
[TD]Apples[/TD]
[TD]167[/TD]
[TD]1.48[/TD]
[TD]167[/TD]
[/TR]
[TR]
[TD]26 Jul 14[/TD]
[TD]2.82[/TD]
[TD]Apples[/TD]
[TD]13[/TD]
[TD]4.3[/TD]
[TD]180[/TD]
[/TR]
[TR]
[TD]08 Aug 14[/TD]
[TD]-1.48[/TD]
[TD]Apples[/TD]
[TD]119[/TD]
[TD]2.82[/TD]
[TD]132[/TD]
[/TR]
[TR]
[TD]05 Dec 14[/TD]
[TD]-2.82[/TD]
[TD]Apples[/TD]
[TD][/TD]
[td]0[/td]
[td]0[/td]
[/tr]
</tbody>[/TABLE]

That's what I'm trying to keep track of. For days until next shipment I use a formula that uses todays date for the last piece of inventory.

I'm not concerned with what the amount of inventory is, the concern is what is my oldest piece of inventory in stock.

I want to be able to say that in the however many tons of apples in inventory the oldest apple in the stack is however many days old.
 
Upvote 0
on 8 aug 14 you shipped out 1.48 tons from 4.3 tons in stock, are you assuming the control measures in the store are so tight that only the 1.48 tons shipped in on 9 feb 14 were shipped out ?
 
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