+ Reply to Thread
Results 1 to 3 of 3

Need remaining average inventory price after partial inventory is sold

  1. #1
    Registered User
    Join Date
    12-04-2012
    Location
    Siingapore
    MS-Off Ver
    Excel 2003-2010
    Posts
    2

    Question Need remaining average inventory price after partial inventory is sold

    Hi guys,

    I try my best to explain what I might be doing.

    I'm buying inventory everyday and sometimes a couple of times a day, and each time, the price is different so I'm using excel to calculate the average price of all the inventories I had bought and had used this formula:

    =SUMPRODUCT(B2:B2000,C2:C2000)/SUM(B2:B2000)

    It works well until when I sold partial of my stock at a higher price and the formula took into account the "profit" and average cost value becomes negative.

    Will it be possible to set a rule so that each time column B has a negative value (which means I sold the item) the remaining inventories will be equally divided among the previous positive value of column B and multiply by the respective cost of purchase to find the new average? Or will it be possible to find the previous highest unit cost with respect to the previous positive value of inventories and mutiply by it? Or whatever better idea for solving this issue?

    I have attached the excel in here too.
    Thanks in advance and any help would be greatly appreciated.
    Attached Files Attached Files

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,130

    Re: Need remaining average inventory price after partial inventory is sold

    hi Akano, welcome to the forum. is the answer 1.83? if so, try:
    =SUMPRODUCT((B2:B2000>0)*(B2:B2000)*(C2:C2000))/SUMIF(B2:B2000,">0")

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Registered User
    Join Date
    12-04-2012
    Location
    Siingapore
    MS-Off Ver
    Excel 2003-2010
    Posts
    2

    Thumbs up Re: Need remaining average inventory price after partial inventory is sold

    Hi Ben! I complicated myself too much. Sorry if the question sound dumb! But That's exactly what Im Looking for!!! Many Thanks!

+ 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