+ Reply to Thread
Results 1 to 8 of 8

Formula for Calculation of FIFO testing

  1. #1
    Registered User
    Join Date
    03-21-2015
    Location
    Baku, Azerbaijan
    MS-Off Ver
    Windows 7
    Posts
    40

    Formula for Calculation of FIFO testing

    Helle everyone. I have such an issue. I need apply standart advanced formula for calculation of FIFO. I have attached an excel. I need advance formula to consider that there might be a number of issues or purchases like 1st issue- 2nd issue then purchase, rather that one issue, one purchase, one issue one purchase.

    QTY unit cost Amount
    Inevntory Balance 20 4 80
    Purchased 40 5 200
    issued -50 -230 =(20*4+30*5)
    Remanined Balance 10 50
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Formula for Calculation of FIFO testing

    Have a look at this http://www.sumwise.com/blog/fifo/

  3. #3
    Valued Forum Contributor
    Join Date
    01-16-2012
    Location
    England
    MS-Off Ver
    MS 365
    Posts
    1,394

    Re: Formula for Calculation of FIFO testing

    Rafa,

    The attached example shows you how stock is used on a FIFO basis when you add "usage" into C9.

    Ochimus
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    03-21-2015
    Location
    Baku, Azerbaijan
    MS-Off Ver
    Windows 7
    Posts
    40

    Re: Formula for Calculation of FIFO testing

    Thank you both for your replies. Jason the formula works, but if I want to test a new item with Opening balance and movement during year with the sam excel sheet the formula does not work due u know why ?

  5. #5
    Registered User
    Join Date
    03-21-2015
    Location
    Baku, Azerbaijan
    MS-Off Ver
    Windows 7
    Posts
    40

    Re: Formula for Calculation of FIFO testing

    I have started calculation another transaction with this formula, pls see excel attached for problem, but it did not work, I wonder why
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    04-24-2012
    Location
    Wiltshire, England
    MS-Off Ver
    Office 365
    Posts
    44

    Re: Formula for Calculation of FIFO testing

    Rafa - which formula specifically is not working?

    I just downloaded the spreadsheet and it seems like some of the array formulas might not be right
    The cell I13 is correct because you have 2 minus figures which results in an addition

  7. #7
    Registered User
    Join Date
    03-21-2015
    Location
    Baku, Azerbaijan
    MS-Off Ver
    Windows 7
    Posts
    40

    Re: Formula for Calculation of FIFO testing

    Cpl Smudge- you this the 1st calculation is working. But second calculation is not working. The second calculation works only if we shift it one coloumn right. To wrap up, array formula works only for the 1st calculation, for the 2nd different calculation it need to be shifted one coloumn wright. I really need this formula to work which will facilitate my work.

  8. #8
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,153

    Re: Formula for Calculation of FIFO testing

    Change formula in D12

    =IF($B12>=0,B12*C12,-(MAX(IF($E$12:$E12<-SUMIF($B$12:$B12,"<0"),$F$12:$F12))
    -(SUMIF($B$12:$B12,"<0")+MAX(IF($E$12:$E12<-SUMIF($B$12:$B12,"<0"),$E$12:$E12)))
    *INDEX($C$12:$C12,MATCH(MIN(IF($E$12:$E12>=-SUMIF($B$12:$B12,"<0"),$E$12:$E12)),$E$12:$E12,0))
    +SUMIF(OFFSET(D12,-1,0,- ROWS($D$11:D12) +1,1),"<0")))

    The original formula used ROW(D12) and if you work through EVALUATE FORMULA you will see the SUMIF refers to Range starting D1 as a result of using ROW() rather than the change above.

    First calculation changed as well

    =IF($B2>=0,B2*C2,-(MAX(IF($E$2:$E2<-SUMIF($B$2:$B2,"<0"),$F$2:$F2))
    -(SUMIF($B$2:$B2,"<0")+MAX(IF($E$2:$E2<-SUMIF($B$2:$B2,"<0"),$E$2:$E2)))
    *INDEX($C$2:$C2,MATCH(MIN(IF($E$2:$E2>=-SUMIF($B$2:$B2,"<0"),$E$2:$E2)),$E$2:$E2,0))
    +SUMIF(OFFSET(D2,-1,0,-ROWS($D$1:D2)+1,1),"<0")))
    Last edited by JohnTopley; 04-03-2016 at 08:38 AM.

+ 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 COGS formula
    By seolann in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-27-2013, 06:41 PM
  2. FIFO calculation
    By MsZy in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-07-2013, 08:02 PM
  3. calculation of profit as per fifo method
    By mahaveersomani in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-06-2013, 03:01 AM
  4. FIFO Formula
    By kishanghataliya in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-07-2013, 09:49 PM
  5. [SOLVED] FIFO Method Inventory Calculation
    By pakhare.kiran in forum Excel Programming / VBA / Macros
    Replies: 31
    Last Post: 10-10-2012, 01:13 PM
  6. fifo calculation in excel 2003
    By bnarayana0 in forum Excel General
    Replies: 1
    Last Post: 05-15-2012, 11:33 PM
  7. FIFO Calculation Help using Function
    By edwoody in forum Excel General
    Replies: 2
    Last Post: 04-01-2011, 10:15 AM
  8. FIFO valuation Calculation for Stocks
    By CJD in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-24-2009, 02:07 AM

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