Results 1 to 8 of 8

Macro to iteratively allocate stock each day

Threaded View

  1. #1
    Registered User
    Join Date
    07-22-2017
    Location
    Melbourne
    MS-Off Ver
    2016
    Posts
    7

    Lightbulb Macro to iteratively allocate stock each day

    Hi all,

    I'm looking for help with a stock forecasting model via formulae or macro

    The model currently requires manual allocation of either 'B' or 'ZA' stock each day based on net demand (called 'Net Number' for each type in the spreadsheet), prioritising larger Net Number then 'B' type if Net Numbers are equal. After allocation, the Stock Level and Net Number will reduce based on Usage and then the same occurs for the following day. Stock levels will also increase when Deliveries land (columns G and H)

    'Usage' depends on a few rules:
    • Maximum daily usage - 'B' allocation takes two days to complete so daily usage can be either 0.5 'B' type or '1 'ZA' type per day. If allocating B, next allocation must be 0.5 'B' type (i.e. to finish the previous day's allocation)
    • Stock Level - only use when stock level >=1 (unless 2nd day of 'B' type, where stock can be >=0.5) and cannot be less than 0
    • Usage prioritises larger Net Number value, then 'B' type
    • Avoiding weekends and public holidays (rows highlighted in red)

    I've also attached a screenshot of a couple of working examples

    Hopefully that explains what I'm after, happy to provide more info if anything's unclear.

    Appreciate all and any help, so thanks in advance!
    Attached Images Attached Images
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] VBA / Macro to copy and paste 100 rows iteratively
    By Ted Dennis in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-16-2021, 06:10 AM
  2. How to automatically allocate stock to pallet with a limit space
    By Vi Nguyenn in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-04-2021, 09:15 AM
  3. Replies: 1
    Last Post: 04-26-2020, 09:29 AM
  4. Replies: 1
    Last Post: 05-23-2016, 10:23 PM
  5. Replies: 31
    Last Post: 10-28-2015, 01:54 AM
  6. Replies: 1
    Last Post: 02-17-2015, 12:12 AM
  7. Macro for iteratively updating a grid based on inputs
    By swagatkarnany in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-21-2012, 02:18 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