+ Reply to Thread
Results 1 to 5 of 5

Basic consumption formula

  1. #1
    Registered User
    Join Date
    02-05-2016
    Location
    London, england
    MS-Off Ver
    2007
    Posts
    3

    Cool Basic consumption formula

    hi, I am trying to create a formula that does a stock fifo. For instance, I have 2 cases in stock and i buy 5 more cases of beer A over a month (e.g case 1, case 2 etc) in the month I consume 3 cases. I want a formula that shows the first 3 cases I costumed were case 1, case 2 (old stock) and case 3 that I bought. Leaving me with cases 4 to 7 as stock. To make it harder I would like to do this with different types of beer so e.g beer b, beer c....be great if someone could help, I have seen it before but do not have the formula anymore! Thanks

  2. #2
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Basic consumption formula

    Hope I understand well your description. I assumed case 3 is a first date after dates of case1 and case 2.
    so
    A2:An = dates in (A-Z, Z-A, mixed - doesn't matter)
    B2:Bn = name of beer
    C2: =IF(ROW(1:1)>3,"",SMALL($A$2:$A$n,ROW(1:1))) and drag down to C4 (because you said, first 3 cases)
    D2: =IF(C2="","",INDEX($B$2:$B$n,SMALL(IF(C2=$A$2:$A$n,MATCH(ROW($A$2:$A$n),ROW($A$2:$A$n))),SUM(--(C2=$C$2:C2))))) confirm by CSE and drag down to D4
    n change to suitable number of last row of your data.
    CSE = Control+Shift+Enter

    BeerOnStock.xlsx

    sandy
    Last edited by sandy666; 02-05-2016 at 11:03 PM. Reason: typo

  3. #3
    Registered User
    Join Date
    02-05-2016
    Location
    London, england
    MS-Off Ver
    2007
    Posts
    3

    Lightbulb Re: Basic consumption formula

    Hi, that is kind of along the lines of what I am trying to do, I have mocked up the logic that I am doing manually below columns F to L, based on total consumption during the month...but the transaction/consumption should be formulas, I think i can work out for the transaction...but the consumption amount is where I am failing... Basically I know total amount consumed during the month, but need to allocate this consumption to when I bought the stock, on a FIFO basis

    Consumed during month (units)
    4 Budweiser
    2 Becks
    4 Carlsberf

    Beer Transaction in month Transaction date Opening stock Transaction Consumption Closing stock
    Budwieser 0 01/12/2015 3 0 3 0
    Budweiser 0 10/12/2015 4 0 1 3
    Budweiser Buy 2 05/01/2016 0 2 0 2
    Budweiser Buy 3 07/01/2016 0 3 0 3
    Becks 0 04/12/2015 6 0 2 4
    Becks Buy 1 12/01/2016 0 1 0 1
    Casrlsberg 0 05/12/2015 2 0 2 0
    Carlsberg Buy 1 19/01/2016 0 1 1 0
    Carlsberg Buy 2 20/01/2016 0 2 1 1

    Opening stock = last months closing stock roleed
    Transaction = what I bought or sold during month
    Consumption = what I have consumed
    Closing stock = opening + (buys - sells) - Consumption

    I have seen it done before, but just can not work it out!!!
    Attached Files Attached Files

  4. #4
    Forum Expert sourabhg98's Avatar
    Join Date
    10-22-2014
    Location
    New Delhi, India
    MS-Off Ver
    Excel 2007, 2013
    Posts
    1,899

    Re: Basic consumption formula

    Hello
    I recently made a FI-FO stock calculator.
    Check the file attached if this is somewhat you are looking for.
    You need to press the "Calculate Inventory" button.
    Attached Files Attached Files
    Happy to Help

    How to upload excel workbooks at this forum - http://www.excelforum.com/the-water-...his-forum.html

    "I don't get things easily, so please be precise and elaborate"

    If someone's post has helped you, thank by clicking on "Add Reputation" below the post.
    If your query is resolved please mark the thread as "Solved" from the "Thread Tools" above.

    Sourabh

  5. #5
    Registered User
    Join Date
    02-05-2016
    Location
    London, england
    MS-Off Ver
    2007
    Posts
    3

    Re: Basic consumption formula

    thanks, I will see if I can tweak it...basically I am trying to say I had 10 budweiser in stock, made up of several purchase, and I have I have consumed some of them, as they are generic, I do not know if I have consumed purchase 1, purchase 2, purchase 3 etc...but I need to show that I have consume say 3 during the month, so I need to allocate this consumption on a fifo, this split is the formula I am struggling with...thanks

+ 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. Inventory consumption FI-FO
    By ivaylo89 in forum Excel General
    Replies: 9
    Last Post: 02-02-2016, 07:22 AM
  2. Inventory consumption FI-FO
    By ivaylo89 in forum Excel General
    Replies: 1
    Last Post: 01-31-2016, 06:06 AM
  3. Fuel Consumption
    By josephgeoffreymark in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 09-26-2014, 12:53 PM
  4. Reagent consumption
    By nooredein in forum Excel General
    Replies: 4
    Last Post: 04-11-2014, 11:23 AM
  5. Consumption Question
    By johnsor1 in forum Excel General
    Replies: 4
    Last Post: 01-29-2013, 01:54 PM
  6. [SOLVED] I am looking for help developing a formula to calculate utility consumption
    By cadamhill in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 08-05-2012, 05:48 PM
  7. [SOLVED] Formula to calculate Fuel Consumption
    By Biancodi in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 02-04-2008, 12:31 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