+ Reply to Thread
Results 1 to 9 of 9

FIFO Costing Problem

  1. #1
    Registered User
    Join Date
    01-29-2015
    Location
    London
    MS-Off Ver
    MS 2010
    Posts
    6

    FIFO Costing Problem

    Dear friends,

    I'm David I have an excel which can calculate FIFO costing base on Items ID.
    But unfortunately, It has some error that i can't solve it.

    Below is the objective that I'm attempting to do.
    I have two sheets, The first is Stock-In and the second one is Stock-Out.
    The sheet Stock-In record all of goods that i purchased. Stock-Out record items that i withdraw out and whenever i insert item, quantity
    Excel will calculate Cost value automatically and it also will refresh calculation at next the time if i make changing.

    Here is the list of the two sheets:

    Stock-In
    Date Item Qty Price Value

    01-Jan ItemA 10 5 50
    02-Jan ItemA 15 7 105
    03-Jan ItemB 5 10 50
    03-Jan ItemA 4 8 32

    Stock-Out
    Date Item Qty SalePrice SalesValue CostValue
    04-Jan ItemA 5 6 30 25
    05-Jan ItemA 21 7 70 138

    My problem is that in the Stock-Out sheet on 05-Jan when i withdraw ItemA from 1 to 20 of Qty the Excel calculate FIFO costing is correct but
    when I try to increase up to 21 items the Excel calculate wrong FIFO costing.

    Thus, Do you have any ideas with this?

    Note: I attached my sheet with this Thread as well as highlight the issue on Stock-Out sheet.

    Thank in advance for sharing your ideas.

    DAVID
    Attached Files Attached Files
    Last edited by GOLDENEXCEL; 02-07-2015 at 05:50 AM.

  2. #2
    Forum Expert
    Join Date
    11-28-2012
    Location
    Guatemala
    MS-Off Ver
    Excel 2010
    Posts
    2,394

    Re: FIFO Costing Problem

    try this macro

    column F should contain the quantity in in STOCK-IN at the beginning so it can be depleted !!
    Attached Files Attached Files

  3. #3
    Forum Expert
    Join Date
    11-28-2012
    Location
    Guatemala
    MS-Off Ver
    Excel 2010
    Posts
    2,394

    Re: FIFO Costing Problem

    a better version

    1. it sets the initial stock quantities in stock-in
    2. it clears the cost of sale column in stock-out
    3. it skips blank rows in stock-out
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    01-29-2015
    Location
    London
    MS-Off Ver
    MS 2010
    Posts
    6

    Re: FIFO Costing Problem

    Dear rcm,

    Thank for contribution of your good ideas.

    But i have one another problem with your FIFO sheet.

    The issue is that when i try to connect ( Sub FIFO() ) with ( Private Sub Worksheet_Change(ByVal Target As Range) )
    The Excel always slow down/dry up or take place an Debug on ( rmax = sout.Range("A" & Rows.Count).End(xlUp).Row )

    Can you help me again ?

    Thank for sharing you time.

    David,

  5. #5
    Registered User
    Join Date
    01-29-2015
    Location
    London
    MS-Off Ver
    MS 2010
    Posts
    6

    Re: FIFO Costing Problem

    The code that i attempt to connect is:

    Private Sub Worksheet_Change(ByVal Target As Range)
    Call FIFO
    End sub

    David,
    Last edited by GOLDENEXCEL; 02-07-2015 at 01:34 PM.

  6. #6
    Forum Expert
    Join Date
    11-28-2012
    Location
    Guatemala
    MS-Off Ver
    Excel 2010
    Posts
    2,394

    Re: FIFO Costing Problem

    try restricting it and waiting until the last piece of data is entered.

    Please Login or Register  to view this content.
    Is this then an ongoing calculation?

    if so, I would suggest to post a "jornalized flag" to each calculated entry then so the macro just takes care of the new entry...

  7. #7
    Forum Expert
    Join Date
    11-28-2012
    Location
    Guatemala
    MS-Off Ver
    Excel 2010
    Posts
    2,394

    Re: FIFO Costing Problem

    try this version

    it flags the journalized entries

    A word of caution: All stock-in entries need the FIFO qty to be equal to the Qty (to make it available)
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    01-29-2015
    Location
    London
    MS-Off Ver
    MS 2010
    Posts
    6

    Re: FIFO Costing Problem

    So Perfect............, Thank for this solution.

    rcm

    David,

  9. #9
    Forum Expert
    Join Date
    11-28-2012
    Location
    Guatemala
    MS-Off Ver
    Excel 2010
    Posts
    2,394

    Re: FIFO Costing Problem

    any time, please mark it as SOLVED

+ 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. Costing Problem with Final Sale Price
    By kierenschneider in forum Excel General
    Replies: 9
    Last Post: 12-11-2009, 06:29 AM
  3. Costing
    By chacha in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-18-2009, 09:34 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