+ Reply to Thread
Results 1 to 3 of 3

Stock Allocation value

  1. #1
    Registered User
    Join Date
    06-21-2013
    Location
    Wiltshire, UK
    MS-Off Ver
    365 Version 2210 Build 16.0.15726.20070
    Posts
    72

    Stock Allocation value

    Good evening forum,

    Been some time since I came to you for assistance, but this one has got me.

    I am trying to figure out a formula to return the value of stock being allocated to an order.

    I have 2 lists, Stock age and Backorder

    Stock age lists receipt date, product code, serial number, quantity on serial, unit cost. This list is sorted by oldest receipt first
    Backorder lists product code and quantity ordered. This list is sorted by oldest order first

    The issue is some serial numbers may be a single unit or may be multiple units. So an order for 3 units may come from 3 seperate consecutive serials, 1 unit from one serial and 2 units from the next serial OR 2 units from one serial and 1 unit from the next serial. On top of that each serial may have different unit costs.

    A little example/sample attached showing expected outcome for first 2 orders and how that would be achieved
    Attached Files Attached Files
    Isskint, i get satisfaction out of helping others

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

    Re: Stock Allocation value

    This is an inelegant proposal which I hope that someone will improve upon:
    1. Insert four rows at the top of the Stock Age sheet
    2. Populate G1:L1 using: =SUM(G6:G44)=G4
    3. Populate G2:L4 by pasting transpose columns A:C of the Backorder sheet
    4. Populate G6:L44 using: =IF($C6<>G$3,0,MIN(G$4-SUM(G$5:G5),$D6-SUM($F6:F6)))
    5. Populate the Stock Value column on the Backorder sheet using:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    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.

  3. #3
    Registered User
    Join Date
    06-21-2013
    Location
    Wiltshire, UK
    MS-Off Ver
    365 Version 2210 Build 16.0.15726.20070
    Posts
    72

    Re: Stock Allocation value

    Hi JetMc, Thank you for taking the time to think on this.

    As you say, an inelegant proposal, but hopefully it gets the little grey cells working. I had tried something similar (using Filter() to generate the 3 row list you put at the top to keep it dynamic) but with 40,000 records on Stock Age and 4,000 records on BackOrder, Excel gave me the middle finger!

    Working on something now based on your approach and some voodoo from Leila Gharani!

+ 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. Inventory Stock Allocation Formula
    By Sammiie29 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-13-2021, 03:50 PM
  2. Stock allocation
    By halimgunawan in forum Excel Formulas & Functions
    Replies: 30
    Last Post: 07-23-2020, 08:36 AM
  3. Stock Allocation
    By halimgunawan in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-08-2020, 12:37 PM
  4. [SOLVED] stock allocation calculator help
    By reggie:| in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-12-2016, 02:28 PM
  5. Equal allocation of stock variations
    By Gem1979 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-04-2014, 10:14 AM
  6. [SOLVED] Stock cost allocation
    By Aland2929 in forum Excel General
    Replies: 2
    Last Post: 02-17-2013, 10:27 AM
  7. Stock allocation against order Pick List
    By mikestar in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-05-2011, 09:45 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