+ Reply to Thread
Results 1 to 5 of 5

Equal allocation of stock variations

  1. #1
    Registered User
    Join Date
    12-04-2014
    Location
    Milton Keynes, England
    MS-Off Ver
    2010
    Posts
    3

    Equal allocation of stock variations

    Hi,

    Looking for some help with a growing task. I have 35 market areas which need to receive allocation of stock. This stock can vary in specification and it's important that they each receive an even split. At the moment I'm using tables and formulas to divvy the stock up but the number of variations within the stock is growing making it a very manual task due to rounding errors. I've attached a sample of data for 10 market areas and 93 stock items, of which there are 18 variations. What I would like to return is a Market Area against each order number with an even distribution of models for each area. Any thoughts on how this could be achieved with code? I've used a small sample to illustrate but the actual data would be 35 market areas and up to 3,000 stock items with 100+ possible variations.

    Any help would be greatly appreciated. Many thanks in advance.

    Book1.xlsx

  2. #2
    Forum Expert
    Join Date
    10-09-2014
    Location
    Newcastle, England
    MS-Off Ver
    2003 & 2013
    Posts
    1,986

    Re: Equal allocation of stock variations

    what do the values in column B mean? are these stock amounts ie should MA01 get 16/93rds of the stock while MA04 gets 33/93rds?
    If someone has helped you then please add to their Reputation

  3. #3
    Registered User
    Join Date
    12-04-2014
    Location
    Milton Keynes, England
    MS-Off Ver
    2010
    Posts
    3

    Re: Equal allocation of stock variations

    Quote Originally Posted by pjwhitfield View Post
    what do the values in column B mean? are these stock amounts ie should MA01 get 16/93rds of the stock while MA04 gets 33/93rds?
    These are the volumes that each Market Area should receive so yes, you're right. Sometimes the volume is 0 so would need the code to cope with that. The total volume should always match the number of stock units though.

  4. #4
    Forum Expert
    Join Date
    10-09-2014
    Location
    Newcastle, England
    MS-Off Ver
    2003 & 2013
    Posts
    1,986

    Re: Equal allocation of stock variations

    and what happens for cases where its less than 1?

    For instance, the 1st stock item has 17 pieces, so 1/93rd of 17 is 0.18. Do you give a minimum of 1 to everyone that expects >0 stock? ie 6 items are allocated straight away to those other than 02,06,08 & 10 with the remaining 11 items spread across them as per their percentages? or would you not give MA03 any as theyre allocation would only be 0.18 of an item?

  5. #5
    Registered User
    Join Date
    12-04-2014
    Location
    Milton Keynes, England
    MS-Off Ver
    2010
    Posts
    3

    Re: Equal allocation of stock variations

    Each MA can only receive whole numbers so where MA01 is due 17.2% of each variations they would automatically receive the rounded down volume of each variation then the stock left over is currently manually balanced out. MA01 might receive higher than 17.2% of one model and less than 17.2% of another. MA03 would likely receive 1 of the variation with the highest occurrence which in the example would be one of the units from row 36 to 76 of which there are 41.

+ 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] Equal work allocation via vba
    By akulka58 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-09-2021, 12:31 AM
  2. Replies: 0
    Last Post: 10-15-2014, 11:29 PM
  3. [SOLVED] Stock cost allocation
    By Aland2929 in forum Excel General
    Replies: 2
    Last Post: 02-17-2013, 10:27 AM
  4. Stock allocation against order Pick List
    By mikestar in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-05-2011, 09:45 AM
  5. Replies: 3
    Last Post: 09-13-2005, 06:05 PM

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