+ Reply to Thread
Results 1 to 16 of 16

Inventory Ageing help FIFO

  1. #1
    Registered User
    Join Date
    03-01-2007
    Posts
    37

    Inventory Ageing help FIFO

    Hi all, i am trying to get the age of inventory items that I have in stock

    The attached example show Row 1 actual inventory item (8 pcs)

    From Row 2 onwards are the receipt qty (71 pcs) and dates of that inventory item

    I am looking for code that will delete all the oldest dates down until it matched the same quatity i have in stock??


    any help much apprecaited
    Attached Files Attached Files
    Last edited by cmcconna; 03-22-2011 at 06:48 PM.

  2. #2
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Inventory Ageing help FIFO

    hi, cmcconna, are we looking for number 8 starting from row 2 and down or we are looking for the total quantity (sum of the newest dates) that equals 8? Hope it's clear

    In my understanding of the first in first out method we should get 1 item for 04/03/2011, 1 item for 16/03/2011 and 6 items for 17/03/2011. Am I correct?
    Last edited by watersev; 03-22-2011 at 11:04 AM.

  3. #3
    Registered User
    Join Date
    03-01-2007
    Posts
    37

    Re: Inventory Ageing help FIFO

    Hi there, yes you are spot on


    1 item for 04/03/2011, 1 item for 16/03/2011 and 6 items for 17/03/2011.

    would be the correct result

    thanks

  4. #4
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Inventory Ageing help FIFO

    ok, what will the data table look like with 2 or 3 products then or we will have only one and always in row 2?

  5. #5
    Registered User
    Join Date
    03-01-2007
    Posts
    37

    Re: Inventory Ageing help FIFO

    Hi

    ive attached file with 4 different products...

    apprecaite your help here

    Thanks
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    03-01-2007
    Posts
    37

    Re: Inventory Ageing help FIFO

    for info

    the actual file is 18098 rows of which 628 relate to actual inventory Qty and the remaining are the receipts...

    Thanks again

  7. #7
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Inventory Ageing help FIFO

    please check attachment, run code "test". Output is on the new sheet.
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    03-01-2007
    Posts
    37

    Re: Inventory Ageing help FIFO

    Hi thanks very much, I wish I knew how to do this myself and your script calculates the dates exactly.... thank you very much indeed...

    there is one thing tho... When it updates the data on the new sheet it only copies part of the data.

    I have attached the master sporeadsheet with your macro to let you see what it does..

    46C7577 is the last part number on the new sheet which is row 1902.

    I tried to step thru the macro and noticed that it does run all the way thru to row 14746, but for some reason does not put all the info onto new sheet.

    Thank again for your help. I hope are able to give me some help with getting all the data on to the new sheet.

    Thanks
    Craig
    Attached Files Attached Files

  9. #9
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Inventory Ageing help FIFO

    hi, cmcconna, yes I've noticed that as well but you were the first I was just going to update the file, I've corrected the code, now it will process everything to the end, please check
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    03-01-2007
    Posts
    37

    Re: Inventory Ageing help FIFO

    Fantastic, that is exactly what Im looking...

    ...Im going to spend some time looking at your code to see exactly what its doing as I have other projects this would be usefull in.

    Thank you very much for help

  11. #11
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Inventory Ageing help FIFO

    if you are happy with the solution, please mark the thread as solved (see Forum rules for details)

  12. #12
    Registered User
    Join Date
    04-07-2012
    Location
    Vietnam
    MS-Off Ver
    Excel 2010
    Posts
    1

    Re: Inventory Ageing help FIFO

    Hi Watersev, I'am also find your code is very useful. However, it's a liter bit inconvenience when I always have to copy my data into this file then run macro. I have an idea like that: you can pack your code into an add-in file, named "aging report". In addition, when I click into add-in button in excel ribbon/menu, dialog boxes appear "please choose code column", "please choose Quantity column", "please choose date of receipt column", then I click ok, then the result data appear. (Like the way we choose function "subtotal" or "pivot table"). You can also put your weblink or your contact into the dialog boxes .

  13. #13
    Registered User
    Join Date
    02-15-2013
    Location
    Karachi
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Inventory Ageing help FIFO

    Hi Excel gurus

    I am also interested in finding the age of my Inventory.
    I have a list of purchases of securities. A purchase has a unique deal no and becomes a part of the inventory at settlement date.
    I have a list of sales where, a sale is recorded for each Item with a unique deal no. there can be multiple sales for a security on the same day.

    The output i require should list the remaining list of Purchase transaction with residual balance for a purchase for each security, if a part of it has been sold. The remaining Inventory needs to output on the basis of FIFO , up to a given report date.


    Help will be greatly appreciated.
    Attached Files Attached Files

  14. #14
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Inventory Ageing help FIFO

    Rehana,

    Welcome to the Forum.

    Unfortunately your post does not comply with Rule 2 of our Forum RULES. Do not post a question in the thread of another member -- start your own thread.

    If you feel an existing thread is particularly relevant to your need, provide a link to the other thread in your new thread.

    Old threads are often only monitored by the original participants. New threads not only open you up to all possible participants again, they typically get faster response, too.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  15. #15
    Registered User
    Join Date
    02-15-2013
    Location
    Karachi
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Inventory Ageing help FIFO

    ok Arlu, thanks will do that.

  16. #16
    Registered User
    Join Date
    06-06-2015
    Location
    UAE
    MS-Off Ver
    OFFICE 97
    Posts
    1

    Re: Inventory Ageing help FIFO

    Hi,
    What is the solution if Closing qty is the last column of each row.

    Thank you for your help...

+ Reply to 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