+ Reply to Thread
Results 1 to 13 of 13

Help Required: Stock lists - Calculating combinations of products

  1. #1
    Registered User
    Join Date
    05-11-2013
    Location
    UK, Birmingham
    MS-Off Ver
    2007
    Posts
    7

    Help Required: Stock lists - Calculating combinations of products

    Hi,

    I am after a bit of help.

    Here is what i have so far: stock.xlsx

    Basically, i have 2x base products but we can interchange the parts between the sets so we have 1 variant per base product.

    But what i want to calculate is how many sets i can make out of the available units that are in stock.

    Any ideas?

    Regards,

    Martin
    Last edited by MaD2ko0l; 05-12-2013 at 10:14 AM.

  2. #2
    Forum Contributor
    Join Date
    10-13-2012
    Location
    Southern California
    MS-Off Ver
    Excel 2007
    Posts
    401

    Re: Help Required: Stock lists - Calculating combinations of products

    Hi Martin,

    Will the Excel function COMBINATION help you?

    The format is =combination(x, y) where X is the total number of items you have, and y is the number of items you can choose.

    For example, if you have three items (A, B, C) and you can choose two of them, your possible combinations are AB, AC, or BC. And sure enough, =combin(3, 2) returns 3.

    If you have five items and you can choose three of them, your ten possibilities are ABC, ABD, ABE, ACD, ACE, ADE, BCD, BCE, BDE, or CDE. Sure enough, =combin(5, 3) returns 10.

  3. #3
    Registered User
    Join Date
    05-11-2013
    Location
    UK, Birmingham
    MS-Off Ver
    2007
    Posts
    7

    Re: Help Required: Stock lists - Calculating combinations of products

    Ed,

    Thanks for the help, but i cannot see how that function helps me in what i am trying t achieve.

    Maybe im not explaining it correctly.

    Product 1 includes:
    2x sofas
    1x small table
    4x footstools

    product 2 include:
    6x chairs
    1x large table
    4x footstools

    now they work fine until we add the variants where by we change sofas for chairs

    so...product 1 variant includes
    4x chairs
    1x small table
    4x footstools

    and product 2 variant include
    2x sofas
    1x large table
    4x footstools

    so in the spreadsheet in my original post, we have 5 full sets of product 1 and 11 full sets of product 2.

    so in total we have

    10x sofas
    5x small tables
    64x footstools
    11x large tables
    66x chairs

    Now i want to work out how many of each set (product1/product2/product1 variant/product 2 variant) i can make from the available items i have in stock.

    i have tried some if statements, but depending on which combination is selling when the numbers start to get low it doesn't calculate one of the other combinations correctly.

    Hope that makes a little more sense.

    Regards,

    Martin

  4. #4
    Registered User
    Join Date
    05-11-2013
    Location
    UK, Birmingham
    MS-Off Ver
    2007
    Posts
    7

    Re: Help Required: Stock lists - Calculating combinations of products

    i forgot to mention, in the first spreadsheet, the green cells are order numbers, so when someone orders 1 of the combinations i put it at the end so it will then calculate the remaining stock.

    so, if you have a look at this spreadsheet (stock-v2.xlsx) i have removed the order numbers as if we have just received the amounts and i have manually put in how many sets can be made in each combination (in the "Sets Available" column).

    so.....if we receive more stock of the base product, it will recalculate the sets available in each combination and then people who place orders will deduct 1 from that combination.

    Does that make a bit more sense?
    Last edited by MaD2ko0l; 05-12-2013 at 06:00 AM.

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

    Re: Help Required: Stock lists - Calculating combinations of products

    How come 1 sofa is worth 2 chairs in Base Product 1 but worth 3 chairs in Base Product 2?

    Also, that last link you posted doesn't seem to work...
    Click * below if this answer helped

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

  6. #6
    Registered User
    Join Date
    05-11-2013
    Location
    UK, Birmingham
    MS-Off Ver
    2007
    Posts
    7

    Re: Help Required: Stock lists - Calculating combinations of products

    oops, sorry link is fixed: stock-v2.xlsx

    XOR LX: not quite sure what you mean.

    Base product 1 has 2x sofas and no chairs
    Base product 2 has 6x chairs and no sofas

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

    Re: Help Required: Stock lists - Calculating combinations of products

    I know, but Base Product 1 goes from 2 sofas and 0 chairs to 0 sofas and 4 chairs in its Variant; Base Product 2 goes from 0 sofas and 6 chairs to 2 sofas and 0 chairs in its Variant.

    It's like, if I decided to exchange my Base Product 1 for the Variant version, I'd be getting 4 chairs in exchange for my old 2 sofas, but if I'd bought, say, Base Product 2 Variant and then decided to exchange it for the normal Base Product 2, I'd actually be getting 6 chairs in exchange for my 2 sofas.

    So the 'exchange value' of a sofa is actually quite different in both cases, which seems kind of strange, though I'm sure I'm missing something obvious...

  8. #8
    Registered User
    Join Date
    05-11-2013
    Location
    UK, Birmingham
    MS-Off Ver
    2007
    Posts
    7

    Re: Help Required: Stock lists - Calculating combinations of products

    ah i see what you mean...Doh!

    you are right, Base Product 2 Variant has 2 sofas and 2 chairs.

    stock-v3.xlsx

    here is v3 that now takes the sofa/chairs into account.

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

    Re: Help Required: Stock lists - Calculating combinations of products

    Ok. I think I understand. But from your Total Stock (12 x Sofa, 6 x Table Small, 64 x Footstool, 10 x Table Large, 60 x Chair in your example) do you want to know:

    a) Simply how many of each of your four Products you could make, assuming you were using the entire Total Stock to make just that product? (So, for example, I could make a total of 6 Base Product 1 Variants out of this stock (as there are only 6 x Table Small), even though I'd perhaps then be left with surplus stock for other items.)

    b) All possible combinations of your four Products that you could make from this Total Stock and, I assume, trying to minimise the amount of 'waste' stock as a result of each combination?

    a) is a lot easier than b) - which is actually an optimisation problem with several variables - but let me know anyway and I'll see if I can help.

  10. #10
    Registered User
    Join Date
    05-11-2013
    Location
    UK, Birmingham
    MS-Off Ver
    2007
    Posts
    7

    Re: Help Required: Stock lists - Calculating combinations of products

    option a is what i am after.

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

    Re: Help Required: Stock lists - Calculating combinations of products

    Well, this array formula (confirm with CTRL+SHIFT+ENTER, not just ENTER) in cell A6 of your sheet and copied down will replicate your current 'sets available' entries and automatically adjust when the entries in the Total Units Available table are amended:

    =ROUNDDOWN(MIN(IF(C6:G6<>0,($K$2:$O$2)/C6:G6)),0)

    As for tying this in with updating your stock levels with goods in, sales out, returns, etc., etc., not sure if you're already running that in some different software (SAP, for example) but you're not just looking at a few Excel tweaks but a whole logistics set-up which could take weeks/months to devise and implement. Anyway, hope this at least helps/gets you off to a start.

    Cheers

  12. #12
    Registered User
    Join Date
    05-11-2013
    Location
    UK, Birmingham
    MS-Off Ver
    2007
    Posts
    7

    Re: Help Required: Stock lists - Calculating combinations of products

    XOR LX - you are Fantastic.

    That does exactly what i want.

    You have saved me some headaches

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

    Re: Help Required: Stock lists - Calculating combinations of products

    Glad I could help. Good luck with the business.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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