After searching all over the net for weeks and coming up dry for a working macro that would perform fifo inventory valuation, I turn to the gurus here that have helped in the past. For me, and I would imagine others, this is the holy grail of problems if it can be solved.
I have a workbook with a series of #'d tabs corresponding to different pieces of inventory tracked independently (I've simplified it significantly and attached it). I would like to use the First-in First-out inventory valuation method to calculate the current cost of inventory. A manual calculation and description of the method and the proper result is included in the sample file.
I have come across numerous references to http://www.cpa911.com/read_article.asp?ID=46 here, via google, other messageboards, etc; however, when I have tried implementing it, even as described, it never seems to work! (Note: I've included the code and set it up per their instructions in the attached file...of course, unless I misinterpreted their instructions and my problem lies there...) Moreover, I'm not sure how I would implement this particular macro anyways using named regions considering the same macro would have to be run across several sheets. As a result, the named ranges would always pull data from only the one sheet containing the named range required by the macro . This begs the question of whether there a way to create unique named ranges for each sheet that would be interpreted correctly by a single macro running across multiple sheets...
If this is at all unclear, I would be more than happy to rephrase any/all parts. After all, this problem has been aggravating me for weeks, and I am at the mercy of this forum's gifted coders who may not be well versed in accounting theory :). Even tips of where else to look for more information on getting this to work would be great!
Any and all help is much appreciated.