+ Reply to Thread
Results 1 to 7 of 7

stock allocation calculator help

  1. #1
    Registered User
    Join Date
    06-24-2016
    Location
    perth
    MS-Off Ver
    365
    Posts
    3

    stock allocation calculator help

    Hi all,

    trying to build a little calculator in excel to help with my work in the container shipping industry

    what id like to do is to nominate a particular bay (container storage area on a ship) which has a given amount of space (lets say 150 TEU) for container stock which is going to a particular POD (port of discharge). there are three container types/sizes 20 foot / 20', 40' and 40'HC. the formula would allocate container stock to that bay based on the conditions i have set out. its easier explained with reference to the spread sheet attached.
    the cells in red are data i would enter manually. b4:B6 is the 20', 40' and HC stock for the POD Sydney. for example i choose to allocate bay 1 to POD sydney by typing in SYD in cell g14.

    the conditions for allocated of stock are as follows -
    1st priority is that 20' stock is allocated. there is 150 TEUs of space in a bay for 20' stock although i want only 128 TEUs of 20' nominated to that bay. to fill the remaining space in that bay id like 11x40'HCs allocated to that bay for a total of 150 teu
    once there is insufficient 20' stock to fill a bay up to the level of 128 then i'd like 40' to be allocated up to the level of 128 with 11x40'HCs to complete the balance. if no 20' and 40' to fill a bay up to 128 then to use 40'HCs

    in cells d14, e14, f14 id like formulas to calculate the quantity of 20', 40' and HC stock allocated to that bay and the remaining space available in that bay in cell c14. also formulas to calculate the balance of sydney stock in cells c4:c6

    i would continue to nominate bays to SYD until there is no remaining stock.

    ive been trying to work this out for myself but have been unsuccessful

    another feature id like to work in would be to edit the conditions without editing every formula on the page. for example say i wanted to fill a bay with 40' stock first instead of prior mentioned allocation method. ideally in column H14 > i would enter 1 which would be a reference to a particular condition/allocation

    any help would be greatly appreciated!!

    thanks

    Reggie
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    09-01-2012
    Location
    Norway
    MS-Off Ver
    Office 365
    Posts
    2,883

    Re: stock allocation calculator help

    Here is a start. Test it thoroughly, most likely there are bugs.
    What about the scale on this thing? How many ports and how many bays do you have?

    It bothers me that I can't automate filling in the POD column as well, that would be cool.
    As for your request about changing priority for the different containers in the different bays I think it's feasable but I'll save that for next round.


    Edit: Found one bug and uploaded the file again.
    Attached Files Attached Files
    Last edited by Jacc; 06-25-2016 at 10:38 AM.
    <----- If you were helped by my posts you can say "Thank you" by clicking the star symbol down to the left

    If the problem is solved, finish of the thread by clicking SOLVED under Thread Tools
    I don't wish to leave you with no answer, yet I sometimes miss posts. If you feel I forgot you, remind me with a PM or just bump the thread.

  3. #3
    Forum Expert
    Join Date
    09-01-2012
    Location
    Norway
    MS-Off Ver
    Office 365
    Posts
    2,883

    Re: stock allocation calculator help

    Ok, so I found some bugs. And I made it handle the ports automatically. Had to be a new version so here it is.

    What I like to do is to put in some RANDBETWEEN functions in the input cells, hold down F9 and watch it work. Very satisfying.

    Edit: Darn! Bug again, uploaded again.
    Attached Files Attached Files
    Last edited by Jacc; 06-25-2016 at 11:41 AM.

  4. #4
    Forum Expert
    Join Date
    09-01-2012
    Location
    Norway
    MS-Off Ver
    Office 365
    Posts
    2,883

    Re: stock allocation calculator help

    Couldn't let go of this one. Here is the latest and greatest. It was good fun putting this together and in my eyes it works excellent. I certainly hope reggie hasn't forgot all about it.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    06-24-2016
    Location
    perth
    MS-Off Ver
    365
    Posts
    3

    Re: stock allocation calculator help

    A prompt and most impressive solution Jacc. thanks again

  6. #6
    Forum Expert
    Join Date
    09-01-2012
    Location
    Norway
    MS-Off Ver
    Office 365
    Posts
    2,883

    Re: stock allocation calculator help

    You are welcome!

  7. #7
    Forum Expert
    Join Date
    09-01-2012
    Location
    Norway
    MS-Off Ver
    Office 365
    Posts
    2,883

    Re: stock allocation calculator help

    Dunno why I didn't post this instead, much better layout. You can also copy the sheet and they will both work independently.
    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. Replies: 31
    Last Post: 10-28-2015, 01:54 AM
  2. Equal allocation of stock variations
    By Gem1979 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-04-2014, 10:14 AM
  3. [SOLVED] Stock cost allocation
    By Aland2929 in forum Excel General
    Replies: 2
    Last Post: 02-17-2013, 10:27 AM
  4. Replies: 4
    Last Post: 01-29-2013, 02:26 AM
  5. Replies: 0
    Last Post: 10-28-2012, 07:22 AM
  6. Stock allocation against order Pick List
    By mikestar in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-05-2011, 09:45 AM
  7. A calculator for inventory safety stock
    By Angelus in forum Excel General
    Replies: 0
    Last Post: 05-10-2006, 03:10 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