+ Reply to Thread
Results 1 to 4 of 4

Inventory records for items which are purchased at highest price will be sold first

  1. #1
    Registered User
    Join Date
    05-25-2016
    Location
    Dhaka, Bangladesh
    MS-Off Ver
    2010
    Posts
    31

    Question Inventory records for items which are purchased at highest price will be sold first

    Hi Experts !

    I need to create a workbook for inventory records where items which are purchased at highest price will be sold first.

    A sample file has been attached. Please help me out.

    Thanks in advance.

    Cross Post:
    https://www.mrexcel.com/board/thread...9/post-5978578
    https://www.reddit.com/r/excel/comme...ems_which_are/
    Attached Files Attached Files
    Last edited by masud_jahan; 11-18-2022 at 12:51 AM.

  2. #2
    Registered User
    Join Date
    07-02-2020
    Location
    Indonesia
    MS-Off Ver
    2016 windows
    Posts
    79

    Re: Inventory records for items which are purchased at highest price will be sold first

    is this what you need?
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    05-25-2016
    Location
    Dhaka, Bangladesh
    MS-Off Ver
    2010
    Posts
    31

    Re: Inventory records for items which are purchased at highest price will be sold first

    Quote Originally Posted by superjoejoe2000 View Post
    is this what you need?
    Thanks for your reply.

    I'll input sell quantity manually (in yellow cells of sample file) and need the sell rate to be found by formula (in blue cells of sample file).
    Attached Files Attached Files

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,643

    Re: Inventory records for items which are purchased at highest price will be sold first

    This proposed solution requires the "Buy" data be sorted by the Price/Unit column and employs helper columns.
    1. The helper column headers are the dates and Units from the "Sell" data range
    2. The formula used to produce the "Sub-Unit" helper columns is: =MIN(F$2-SUM(F$4:F4),$B5-SUM($E5:E5))
    3. The formula that populates the "Sub-Unit" column in the "Sell" data is: =INDEX(F$5:H$8,AGGREGATE(15,6,(ROW(F$5:H$8)-ROW(F$4))/(F$1:H$1=M7)/(F$5:H$8>0),COUNTIFS(M$7:M7,M7)),MATCH(M7,F$1:H$1,0))
    4. The formula that populates the "Price/Unit" column is: =INDEX(Table1[Price/Unit],AGGREGATE(15,6,(ROW(Table1[Price/Unit])-ROW(Table1[#Headers]))/(F$1:H$1=M7)/(F$5:H$8>0),COUNTIFS(M$7:M7,M7)))
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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. Replies: 2
    Last Post: 05-03-2021, 12:18 PM
  2. Calculate Inventory and number of items sold
    By rtfish in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-11-2019, 07:04 PM
  3. Trying to add price of items to inventory sheet
    By Janusz McNeill in forum Excel General
    Replies: 7
    Last Post: 02-10-2017, 10:26 PM
  4. Total sold price according to stock price list
    By maniootek in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 01-26-2014, 10:54 PM
  5. Replies: 1
    Last Post: 07-02-2013, 09:17 PM
  6. [SOLVED] Need remaining average inventory price after partial inventory is sold
    By Akano in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-04-2012, 04:12 AM
  7. Auto Chart from purchased and sold
    By brost in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 06-29-2010, 10:25 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