+ Reply to Thread
Results 1 to 2 of 2

Material Stock Allocation based on order date & distribute value evenly

  1. #1
    Registered User
    Join Date
    08-01-2016
    Location
    Chennai
    MS-Off Ver
    2010
    Posts
    7

    Material Stock Allocation based on order date & distribute value evenly

    Hi ,

    Need your help to create a formula for allocation of available stock quantity to each material - distributes Stocks evenly in a order based on 2 conditions


    First condition : Order header : stock quantity to allocate for "2" type
    after completion of (2) , balance stock quantity to allocated to "7" type
    finally, blanks to be allocated

    Second condition : Order date : FIFO Basis allocation based on order creation date


    i am currently update manually but, its more time consuming and finding mistakes

    Steps i followed
    I did vlookup in Raw report and added stock quantity against each material
    i sorted the order creation date manually (oldest to newest)
    i filtererd the mateiral each individually and then, i filter order header "2" type first,
    Then , i enter the distribute the stock evenly in the allocation quantity manually and follow the same procedure for "7" type and finally for blank in A column

    i have filtered one material and allocated the quantity against order manually till Inventor Stock is available and balance stock is identified
    i make it in 3 different set of column and merging it manually into one column.

    Output :
    Material : 16018000
    Inventory stock Qty : 1513
    Total order Qty : 909
    Balance stock Qty : 604
    Pending order Qty: 0
    After allocation as per above conditional sequence, i finish for 1 material. likewise i do it for 500+ material manually.

    Hence i needs your help to create formula for auto Allocation of quantity and calculate balance stock for reference
    if Inventory stock gets zero, the allocation quantity will also be zero


    So, please help to create a formula as i am eager to learn new methods of allocation of the parts


    Thanks in Advance

    Regards,
    RAJ
    Attached Files Attached Files
    Last edited by srglt332; 05-14-2020 at 11:12 AM.

  2. #2
    Registered User
    Join Date
    08-01-2016
    Location
    Chennai
    MS-Off Ver
    2010
    Posts
    7

    Re: Material Stock Allocation based on order date & distribute value evenly

    Hi sir,

    i have just worked out the below formula but it works "fine" to some extent and still needs manual intervention

    after sorting the below 2 columns, the formula works

    1. Order date (Column C) : oldest to newest
    2. Order header (Column A) : Smallest to largest (Acending to descending)

    But, if some other columns sorting is done, then the values gets changed

    Formula:
    =IF(A5=$A$2,(MAX(MIN(F5,VLOOKUP(D5,D:G,4,0)-SUMIFS($F$3:F4,$D$3:D4,D5,$A$3:A4,$A$2)),0)),IF(A5=$B$2,(MAX(MIN(F5,(VLOOKUP(D5,D:G,4,0)-SUMIFS($F$3:F4,$D$3:D4,D5,$A$3:A4,$A$2))-SUMIFS($F$3:F4,$D$3:D4,D5,$A$3:A4,$B$2)),0)),0))

    Is it possible to include the above 2 manual steps of sorting in formula.

    I have attached the updated working file for reference.
    Needs expert advise, kindly suggest for modification



    Thanks in Advance
    Raj
    Attached Files Attached Files

+ 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. [SOLVED] How to evenly distribute work based on cell values and number of employees?
    By AccountingJ in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 10-09-2019, 12:50 PM
  2. Replies: 9
    Last Post: 05-23-2017, 11:06 AM
  3. [SOLVED] Distribute Tasks Evenly
    By karthikcoep in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-12-2015, 05:48 AM
  4. [SOLVED] Help with Formula to Distribute evenly based on pack size of item...
    By blue84rain in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-29-2014, 05:53 PM
  5. Distribute Data Evenly
    By sohlican in forum Excel General
    Replies: 13
    Last Post: 09-19-2014, 07:37 PM
  6. Distribute variables evenly
    By Jovanator in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-18-2014, 12:15 PM
  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

Tags for this Thread

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