+ Reply to Thread
Results 1 to 7 of 7

Fifo with the change of code

  1. #1
    Registered User
    Join Date
    01-17-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    54

    Fifo with the change of code

    hi... i have attached the file i have data which i have code... i want the fifo of stock with the respect of their code.. date i have array... and i also want the value of stock which remain and also calculate the cost of goods sold.....
    Attached Files Attached Files

  2. #2
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Fifo with the change of code

    I think that this answers your questions.
    Attached Files Attached Files
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  3. #3
    Registered User
    Join Date
    01-17-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    54

    Re: Fifo with the change of code

    Please find the attached file i hope this file complete tell you what i really want.... when i change the code it not work...

    Regards,
    MaK
    Attached Files Attached Files
    Last edited by makhdoomliaqat; 04-15-2015 at 04:11 PM.

  4. #4
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Fifo with the change of code

    What column(s) are giving you a problem and what is it that you are expecting and not getting?

  5. #5
    Registered User
    Join Date
    01-17-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    54

    Re: Fifo with the change of code

    column J is giving error, i have mention in file now and also make it more easy form to understand...
    Please see this file...
    Attached Files Attached Files

  6. #6
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Fifo with the change of code

    Without trying to take apart and analyze column J, error checking the formula identified this part of the formula in J9 to be in error.
    *INDEX($H$2:$H9,MATCH(MIN(IF($P$2:$P9>=-SUMIF($Q$2:$Q9,"<0"),$P$2:$P9)),$P$2:$P9,0)) which is equivalent to *INDEX($H$2:$H$9,MATCH(0,$P$2:$P$9,0)) which in turn is equivalent to INDEX($H$2:$H$9,#N/A)

    The formula in the end comes down to IF(FALSE,#N/A,-(#N/A+ SUM(0))) This will end up as #N/A

    This was taken from the EVALUATE FORMULA on the Formulas tab.



    ......and there isn't a value to match the first argument of the MATCH function to be found in the range $P$2:$P$9

    The ranges used in the formula that reference column J seem strange to me and I can't figure out why you have chosen the range that you have.

    I would break all this down in steps off to the right of your data so that you can see where the calculation goes wrong then after finding the error(s) try to assemble it back into a formula for column J.

    There are too many parts that I don't know how they relate to each other for me to help you further.

  7. #7
    Registered User
    Join Date
    01-17-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    54

    Re: Fifo with the change of code

    do you have any format for fifo of this kind.... which help me to solve my this issue if you or any other person of forum have please send me ......... !

+ 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. FIFO-LIFO UDF function not working if DataRange are apart from each other
    By Par in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-12-2014, 06:02 PM
  3. Replies: 4
    Last Post: 07-09-2012, 04:15 PM
  4. Replies: 15
    Last Post: 04-17-2012, 08:19 AM
  5. Code to evaluate FIFO for multiple items and dates.
    By BillRush in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-29-2011, 11:09 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