+ Reply to Thread
Results 1 to 3 of 3

FIFO Calculation Help using Function

  1. #1
    Registered User
    Join Date
    03-02-2011
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    20

    FIFO Calculation Help using Function

    Hello

    I am hoping this is an esay thing to fix but I have found a FIFO function to use in Excel and it doesnt seem to work. My VBA is basic and I cant step through the code as it is a function. All I basically want to calculate is the FIFO value of the sale quantity. As you will see in the attached its calculating some weird values.

    For the Sale on the 1st Nov I would expect the following:

    323 x 640 = 206,720

    For the Sale on the 2nd which goes across two inventory values I would expect the following:

    3,409 x 640 = 2,181,760
    392 x 668 = 261,856
    = 2,443,616 as sale USD value FIFO and then this would come off the closing value.

    Thanks for your help.
    Attached Files Attached Files

  2. #2
    Forum Expert Colin Legg's Avatar
    Join Date
    03-30-2008
    Location
    UK
    MS-Off Ver
    2003, 2007, 2010, 2013
    Posts
    1,252

    Re: FIFO Calculation Help using Function

    Hi,
    My VBA is basic and I cant step through the code as it is a function
    You can step through the code if you call it using a Test VBA sub rather than from a worksheet.
    Please Login or Register  to view this content.
    If you press F8 in the Test sub then you can step through your code and debug it. Let us know how you get on!
    Hope that helps,

    Colin

    RAD Excel Blog

  3. #3
    Registered User
    Join Date
    03-02-2011
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    20

    Re: FIFO Calculation Help using Function

    Thanks for the info, allows me to debug but doesnt get to the bottom of my issue, still not working correctly. Please 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