+ Reply to Thread
Results 1 to 7 of 7

optimise use of different pack size

  1. #1
    Registered User
    Join Date
    06-01-2011
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    11

    optimise use of different pack size

    Can excel optimise the use of different pack size available to fulfill an order.

    e.g. An order requires minimum 120 units of a product while pack size of the product available is 50 units and 20units. obviously the most economical way is to use 6 x 20units to fulfill the order. Can excel understand this logic and don't output use of 3 x 50units?

    Thanks.
    Attached Files Attached Files
    Last edited by poonw; 09-16-2020 at 05:44 AM.

  2. #2
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: optimise use of different pack size

    Hi,

    For the example you give, why is 6 x 20units more 'economical' than (2 x 50units) + (1 x 20units)? Or aren't you allowed to mix pack sizes?

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  3. #3
    Registered User
    Join Date
    06-01-2011
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: optimise use of different pack size

    Hi, this is for pharmaceutical manufacturing so it's good practice to limit raw materials to one pack size. of course if stock is not available then in that example 2 x 50units + 1 x 20units is also a viable option.

    The thing is how can I ask Excel to output these usage figures for me.

    Thanks

  4. #4
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: optimise use of different pack size

    Thanks. And can the order quantity always be precisely met by some combination of the available pack sizes? Or can there be cases for which the order quantity can't be satisfied precisely, for example an order of 275 units given the two pack sizes you give?

    It might be helpful if you supplied more examples together with expected results.

    Regards

  5. #5
    Registered User
    Join Date
    06-01-2011
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: optimise use of different pack size

    Hi, just updated the post with example spreadsheet. In there you will see the expected total number of individual pack sizes that I would like Excel to output.

    Thanks.

  6. #6
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: optimise use of different pack size

    Thanks a lot.

    I removed the "mg" part from the entries in C2 and D2, just to make the formula-work less complex.

    In C3:

    =MOD(MATCH(1,FREQUENCY(0,{0,1,2,3,4,5,6,7,8,9}*C$2+{0;1;2;3;4;5;6;7;8;9}*D$2-$B3),0)-1,10)

    In D3:

    =INT((MATCH(1,FREQUENCY(0,{0,1,2,3,4,5,6,7,8,9}*C$2+{0;1;2;3;4;5;6;7;8;9}*D$2-$B3),0)-1)/10)

    Both copied down.

    The above assume a maximum of 9 of each pack size per order. If you don't think this will be sufficient let me know a feasible upper limit and I'll provide suitably updated versions of the above.

    Regards

  7. #7
    Registered User
    Join Date
    06-01-2011
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: optimise use of different pack size

    Thanks. that's exactly what I need.

    If in the future I would like to increase the upper limit do I simply keep adding ,10,11,12 ... to the formula?

+ 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. Optimise using VBA (without solver)
    By djibbo in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 12-17-2018, 01:34 PM
  2. [SOLVED] optimise trips
    By missticktock in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 10-21-2018, 12:02 AM
  3. [SOLVED] splitting formula giving wrong answer in a particular for specific pack size description
    By JEAN1972 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-28-2018, 01:40 PM
  4. [SOLVED] formula to extract unique data and adding drinks pack size description only
    By JEAN1972 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-29-2017, 03:34 PM
  5. Loop not optimised
    By radddogg in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-04-2017, 08:39 AM
  6. [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
  7. Excel 2007 : Changing Quantity according to pack size
    By Navneet in forum Excel General
    Replies: 12
    Last Post: 05-19-2010, 07:45 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