+ Reply to Thread
Results 1 to 7 of 7

FIFO value by item computed from observed quantity by item and purchase information

  1. #1
    Registered User
    Join Date
    11-05-2014
    Location
    Washington, DC
    MS-Off Ver
    07
    Posts
    5

    FIFO value by item computed from observed quantity by item and purchase information

    I have observed inventory and I have a dump of all purchase information. I would love a formula or a combination of tricks and formula to compute this. I know very little about VB or Macro's but I am open to anything at this point. The yellow area is where I believe I would like the formula to go. I provided one check figure for this example. Thank you!
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor natefarm's Avatar
    Join Date
    04-22-2010
    Location
    Wichita, Kansas
    MS-Off Ver
    2016
    Posts
    1,020

    Re: FIFO value by item computed from observed quantity by item and purchase information

    Not sure I totally understand your question, but the following formula in I4, then dragged down, will give a sum of all quantities purchased for that product number.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Acts 4:12
    Salvation is found in no one else, for there is no other name under heaven given to mankind by which we must be saved.

  3. #3
    Registered User
    Join Date
    11-05-2014
    Location
    Washington, DC
    MS-Off Ver
    07
    Posts
    5

    Re: FIFO value by item computed from observed quantity by item and purchase information

    So in H4 I see I have 111 items for that product number. Assuming I sell the oldest item first. How much did the last 111 items cost me? That could be what remains from the last purchase or the 4 last purchases. All were purchased at different unit costs each time so you know if the formula works or not when you check the math totaling the most recent purchases.

  4. #4
    Registered User
    Join Date
    11-05-2014
    Location
    Washington, DC
    MS-Off Ver
    07
    Posts
    5

    Re: FIFO value by item computed from observed quantity by item and purchase information

    I want the correct total value of the inventory assuming I sold the oldest item first for each product number.

  5. #5
    Valued Forum Contributor natefarm's Avatar
    Join Date
    04-22-2010
    Location
    Wichita, Kansas
    MS-Off Ver
    2016
    Posts
    1,020

    Re: FIFO value by item computed from observed quantity by item and purchase information

    Will your columns A:D are normally be sorted by date? Does the code need to do a sort before doing the calculations, or would that cause a problem?

  6. #6
    Registered User
    Join Date
    11-05-2014
    Location
    Washington, DC
    MS-Off Ver
    07
    Posts
    5

    Re: FIFO value by item computed from observed quantity by item and purchase information

    I don't think it matters if it sorts it. If your solution requires it to be sorted to get the right date order then I would sort. It would be good to not rely on the order to be in correct date order if your spreadsheet needs that.

  7. #7
    Valued Forum Contributor natefarm's Avatar
    Join Date
    04-22-2010
    Location
    Wichita, Kansas
    MS-Off Ver
    2016
    Posts
    1,020

    Re: FIFO value by item computed from observed quantity by item and purchase information

    If you're needing FIFO, then the sort is needed. In your example, you had a test result of $558, but sorted by date, the actual value is $530 (unless my code isn't right). Give this a try.
    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Fifo costing based on item code
    By Mohamad Mneimneh in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-18-2014, 10:17 AM
  2. Code for a Texbox Item for input of Purchase Orders
    By Fireeyes2l2 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-19-2013, 11:37 AM
  3. Getting Quantity of an item
    By aamercado in forum Excel General
    Replies: 7
    Last Post: 07-26-2012, 05:26 PM
  4. calculate the quantity of each size of an item
    By kimcole5 in forum Excel General
    Replies: 2
    Last Post: 11-26-2008, 01:32 PM
  5. item code and quantity log
    By Tero Tuohesmaa in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-28-2006, 01:55 PM

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