+ Reply to Thread
Results 1 to 2 of 2

Allocation with VBA until limit value is reached

  1. #1
    Registered User
    Join Date
    02-19-2023
    Location
    Lisbon
    MS-Off Ver
    360
    Posts
    1

    Allocation with VBA until limit value is reached

    Hello everyone,

    I'm scratching my head with a problem that seems to have a simple resolution but which I can't find; so I'm in need for your help.

    In a warehouse, I have several Buffer Areas to store boxes that will be shipped to several Destinations (see green table).
    Each Buffer Area has its own maximum capacity (see blue table), but can only store boxes for two Destinations at the most.

    What I need is a VBA code to fill the last column ("Buffer Area"), in the green table, with the designated Buffer Area to store the boxes before they are shipped to the respective destinations - the order in which the Buffer Areas are given to the Destinations should be from the first row of the table to the last one.
    Ideally the end result would be what is illustrated in the orange table.

    I would really appreciate any help.
    Thanks!

    Destination.PNG
    Capacity.PNG
    Allocation.PNG

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Allocation with VBA until limit value is reached

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however it has been brought to our attention that the same query has been posted on one or more other forums and you have not told us about this. You are required to do so.

    Please see Forum Rule #3 about cross-posting and adjust accordingly. Read this to understand why we (and other sites like us) consider this to be important: https://excelguru.ca/a-message-to-forum-cross-posters/

    I have provided the links since it's your first post. Please read all our rules before continuing.

    http://www.vbaexpress.com/forum/show...lue-is-reached

    https://www.mrexcel.com/board/thread...ached.1230344/
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

+ 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] Have I reached some kind of limit?
    By ChrisXcel in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-29-2020, 04:55 PM
  2. Force value to zero when limit has been reached
    By breen77 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-10-2018, 12:04 PM
  3. [SOLVED] Help: SUM/ max limit / return 0 if reached
    By happydays886 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-07-2016, 02:07 PM
  4. Help: SUM/ max limit / return 0 if reached
    By happydays886 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-07-2016, 12:22 PM
  5. [SOLVED] Reached the limit of MATCH?
    By Exequiel3k in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-01-2016, 01:18 PM
  6. Adding until limit reached
    By deli9680 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-09-2012, 11:20 AM
  7. sheet reached max limit
    By legolas in forum Excel - New Users/Basics
    Replies: 7
    Last Post: 12-14-2011, 06:56 PM

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