Hello everyone. I am a new member of this forum and I am from Hong Kong.
If my English is not so good, please forgive me.
I am now doing some manual entries and updates for the FIFO inventory system.
As you can see from the picture cell "A5",originally, I have physical stock count which is 30, but my last record update shows the sum of my accounts is "C5",which is (D5+E5+F5+G5=10+15+30+5=60)
In other words, Column B shows the difference, which means the company has sold out (C5-A5) 30 number of stock.
In order to update my accounts (diff=0) and match with the FIFO principle, I will manually subtract 5 in cell "G11" (90-120 days is the oldest stock) first and then 25 in cell "E11" (second oldest so that the difference of 30 will be eliminated. Also, sum of record will be equal to closing stock balance.
Are there any methods, formulas or Macros that **If I see there is a difference in column B, it can be automatically subtract the difference gradually from the oldest stock to the latest.
Thank you very much and you help would be really really appreciated.
I am using Excel 2010.
Last edited: