+ Reply to Thread
Results 1 to 6 of 6

how to generate combinations in excel

  1. #1
    Registered User
    Join Date
    08-12-2012
    Location
    Calgary, Alberta
    MS-Off Ver
    Excel 2007
    Posts
    47

    Unhappy how to generate combinations in excel

    Hey can you should me how to change this code to allow for a 2 dimensional array as an input? They 2 dim array could vary in size, anywhere from 4 to 7 columns and up to 4 or 5 rows.

    Thanks,

    Sebastien.

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: how to generate combinations in excel

    i have no idea!
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Registered User
    Join Date
    08-12-2012
    Location
    Calgary, Alberta
    MS-Off Ver
    Excel 2007
    Posts
    47

    Re: how to generate combinations in excel

    Well, thanks for the reply at least. I am new to VBA and I'm trying to learn how to program code for excel. Everything I've looked at, inlcuding books are eithe too beginner ("Hello World") or too difficult to grasp. Thanks for you posts and help anyhow.

    Sebastien.

  4. #4
    Forum Contributor BenMiller's Avatar
    Join Date
    12-06-2011
    Location
    New Jersey
    MS-Off Ver
    Excel 2010
    Posts
    254

    Re: how to generate combinations in excel

    Would a formula solution interest you?

  5. #5
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: how to generate combinations in excel

    There's a workbook that wil do this at https://www.box.com/shared/nqljsd3nlu
    Entia non sunt multiplicanda sine necessitate

  6. #6
    Registered User
    Join Date
    08-12-2012
    Location
    Calgary, Alberta
    MS-Off Ver
    Excel 2007
    Posts
    47

    Re: how to generate combinations in excel

    A formulas solution? I'm not sure what you mean but sure. I thought some kind of algorithm might be the solution but I haven't come across one yet and I'm still new to it all. It's a learning process that has proved to be more frustrating than I thought. Actually, I was hoping, for now, to find a code or a couple of codes/programs that I could hybridize to do what I wanted to do in excel without having to get a degree in computer science. But as I'm finding, it's not that easy. I tried looking at peoples coding to see if I could understand what is going on, and clearly I'm confused. lol. Currently, I'm trying to find a good book on VBA programing for Excel 2007 that is not too basic but not way over my head. Most books I've come across right now have a lot to do with creating forms and putting buttons on them but not how to do hard coding for excel, specifically excel 2007. I have some experience with computer programing but only in basic and I mean basic from way back! If someone could recommend a good book as a starter that would be great! and yes I'd like to look at a formula solution if it's easy enough to understand.

    Thanks.

+ 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