Closed Thread
Results 1 to 12 of 12

FIFO Inventory method balance tracking

  1. #1
    Registered User
    Join Date
    07-07-2009
    Location
    New jersey
    MS-Off Ver
    Excel 2007
    Posts
    4

    Cool FIFO Inventory method balance tracking

    Hi,

    I've been trying to come up with either a formula or a macro (I'm a novice in VBA so it would probably take me forever to figure it out) to track the FIFO balance (First In-First Out) of items at any given point in time. I have attached a sample spreadsheet with the example and all the notes that might help figuring this out.
    I want to stress that I'm not trying to calculate any cumulative balance or any FIFO pricing whatsoever; just separate tracking of the purchase balances at any point in time after varous sales using the FIFO balance.
    Any help is greatly appreciated.

    Thanks!!!
    Attached Files Attached Files
    Last edited by artinj; 07-10-2009 at 07:21 PM.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: FIFO Inventory method balance tracking

    Maybe like this:
    Please Login or Register  to view this content.
    The formula in F5 and down is,

    =IF($B5 > $F$4, 0, MIN(N($C5), MAX(0, SUMPRODUCT( --($A$5:$A5=$A5) * (B$5:$B5<=$F$4), (C$5:C5)) - SUMPRODUCT( ($A5:$A$21 = $A5) * ($B5:$B$21>=$B5) * ($B5:$B$21 <=$F$4) * $D5:$D$21) ) ) )
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: FIFO Inventory method balance tracking

    Or given use of XL2007 possibly:

    G5:
    =IF($B5>$F$1,0,MAX(0,$C5+SUMIFS($C$4:$C4,$A$4:$A4,$A5,$B$4:$B4,"<="&$F$1)-SUMIFS($D$5:$D$21,$A$5:$A$21,$A5,$B$5:$B$21,"<="&$F$1))-SUMIF($A$4:$A4,$A5,$G$4:$G4))
    copied down

    where F1 holds end date of interest

    EDITS:

    1 - revised above in line with shg's which highlighted flaw in my original in that it did not set balance to 0 wherever date exceeded criteria (ie was missing the initial IF)

    2 - added below which simply translates shg's more elegant approach using MIN(C,balance) into a SUMIFS approach

    =IF($B5>$F$1,0,MAX(0,MIN(N($C5),SUMIFS($C$4:$C5,$A$4:$A5,$A5,$B$4:$B5,"<="&$F$1)-SUMIFS($D$5:$D$21,$A$5:$A$21,$A5,$B$5:$B$21,"<="&$F$1))))
    Last edited by DonkeyOte; 07-07-2009 at 12:11 PM. Reason: copying shg :-)

  4. #4
    Registered User
    Join Date
    07-07-2009
    Location
    New jersey
    MS-Off Ver
    Excel 2007
    Posts
    4

    Smile Re: FIFO Inventory method balance tracking

    shg and DonkeyOte,

    Thank you so much for your help and quick reply on this!!! Didn't expect it that fast! This formula is awesome. Greatly appreciated!

    Thank you!

  5. #5
    Registered User
    Join Date
    06-16-2009
    Location
    karchi
    MS-Off Ver
    Excel 2003
    Posts
    14

    Re: FIFO Inventory method balance tracking

    i have a same problem what you are facing, my problem my inventory consist of expiry date

    STOCK NAME EXPIRY DATE UNIT PRICE
    A 01-08-2008 100 $ 1,158/-
    A 02-09-2009 120 $ 1,268/-

    STOCK CONSUMED 120
    CLOSING INVENTORY 100 WHAT FORMULA I USE?

    Similarly
    STOCK NAME EXPIRY DATE UNIT PRICE
    B 01-08-2008 100 $ 1,458/-
    B 08-09-2009 80 $ 1,368/-
    STOCK CONSUMED 120
    CLOSING INVENTORY 60 WHAT FORMULA I USE?

    CAN YOU HELP ME OUT?

  6. #6
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: FIFO Inventory method balance tracking

    Please take a few minutes to read the forum rules, and then start your own thread.

  7. #7
    Registered User
    Join Date
    06-16-2009
    Location
    karchi
    MS-Off Ver
    Excel 2003
    Posts
    14

    Re: FIFO Inventory method balance tracking

    [kINDLY RESPONSE THE ABOVE THE MAIL

    THANKS
    CHACHA

  8. #8
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: FIFO Inventory method balance tracking

    Your post does not comply with Rule 7 of our Forum RULES. Please do not ignore Moderators' or Administrators' requests, if you are unclear about their request or instruction then send a private message to them asking for help. Do not post a reply to a thread where a moderator has requested an action that has not been complied with e.g Title change or Code tags...etc

    Chacha, please both read & adhere to the Forum Rules before posting any further.

  9. #9
    Registered User
    Join Date
    07-22-2008
    Location
    Indonesia
    Posts
    1

    Re: FIFO Inventory method balance tracking

    Dear shg,

    I tried your formula, but the no result, would you chek the formula in the file enclosed, maybe the formula did not correct when I write into the cells.

    Thanks you.
    Naris:
    Attached Files Attached Files

  10. #10
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: FIFO Inventory method balance tracking

    Please don't post questions in someone else's thread -- start your own.

    Paste either my formula or DO's first formula verbatim into your worksheet -- both work fine. I have no doubt that DO's more compact formula works equally well in 2007, but have not tested.

  11. #11
    Registered User
    Join Date
    11-14-2010
    Location
    Chennai, India
    MS-Off Ver
    Excel 2007
    Posts
    1

    Using FIFO Inventory method to calculate the Long short position

    Dear All,

    I am Karthikeyan. I am coming with up with new query. I would like to calculate the Long or short of my positions using FIFO method. If i sold the shares less than 365 days then its short.

    The problem is i am not selling lot wise. for ex if i bought 1,000 shares of Axis bank on 01.01.2005 and sold 500 shares on 30.06.2005.Again i bought 1125 on 08.08.2005 and sold 1500 share on 15.01.2006. in this case 500 taken from 01.01.2005 lot and 1,000 taken from 08.08.2005.

    How to calculate the Long short classification for the above. I have attached the excel sheet.

    Please help me with some formula.

    Thanks in Advance

    Karthikeyan.
    Attached Files Attached Files

  12. #12
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: FIFO Inventory method balance tracking

    @karthi1727, welcome to the board, however, please note:

    Your post does not comply with Rule 2 of our Forum RULES. Don't post a question in the thread of another member -- start your own thread. If you feel it's particularly relevant, provide a link to the other thread.

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1