+ Reply to Thread
Results 1 to 9 of 9

Generate Heads Tails Combination Result VBA

  1. #1
    Spammer
    Join Date
    06-09-2014
    Location
    https://t.me/pump_upp
    MS-Off Ver
    Microst Office 365 Plus
    Posts
    149

    Generate Heads Tails Combination Result VBA

    I want to generate a table which contain each possible outcome of coin flipped 6 times with all sequence being covered. Each cell should result of only one toss and each row result of one possible permutation.

    Why? Well I want to generate matrix along the line of attache picture and later replace max/min with values.
    Capture.PNG
    Last edited by AliGW; 10-26-2018 at 08:23 AM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,923

    Re: Generate Head Tale Combination Result

    This is probably better suited to a VBA solution - shall I move the thread for you?
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Spammer
    Join Date
    06-09-2014
    Location
    https://t.me/pump_upp
    MS-Off Ver
    Microst Office 365 Plus
    Posts
    149

    Re: Generate Head Tale Combination Result

    sure. Apologies for wrong section.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,923

    Re: Generate Head Tale Combination Result VBA

    Done - hope you get some help now.

  5. #5
    Forum Expert
    Join Date
    10-02-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    1,222

    Re: Generate Heads Tails Combination Result VBA

    Quote Originally Posted by MoldyBread View Post
    I want to generate matrix along the line of attache picture and later replace max/min with values.
    What other values? If its still a binary set for each cell, that doesn't matter. If its not that drastically changes things based on the number of values you want to work with.

    If you give us all the information now, we can work on solutions that meet all your needs instead of working on solutions that only meet some of your needs and then later finding out that time was wasted and a new solution is needed from scratch.
    Ways to get help: Post clear questions, explain your overall goal, supply as much background as possible, respond to questions asked of you by those trying to help and post sample(s) files.

    "I am here to help, not do it for people" -Me

  6. #6
    Forum Expert XLent's Avatar
    Join Date
    10-13-2010
    Location
    Northumberland, UK
    MS-Off Ver
    various
    Posts
    2,704

    Re: Generate Heads Tails Combination Result VBA

    I didn't see the VBA thing so I'm afraid I looked at from a formulaic perspective

    the below applied to matrix A1:F64 would generate the unique permutations, I think?

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by XLent; 10-26-2018 at 10:29 AM. Reason: removed superfluous sub calc

  7. #7
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,829

    Re: Generate Heads Tails Combination Result VBA

    If it helps, here's a spreadsheet I put together for generating permutationsL https://www.excelforum.com/tips-and-...thout-vba.html There are both formula based and VBA (For..Next loop) based examples. It seems that most prefer to use VBA (or other programming language) for this because generating permutations/combinations is usually a simple matter of nesting For..Next loops.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  8. #8
    Spammer
    Join Date
    06-09-2014
    Location
    https://t.me/pump_upp
    MS-Off Ver
    Microst Office 365 Plus
    Posts
    149

    Re: Generate Heads Tails Combination Result VBA

    Thank you. I think my wording were extremely poor. The variable can only exist in two possible states and hence min max. I should have mentioned binomial nature.

    @XLent Words perfectly. Thanks You.

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,923

    Re: Generate Heads Tails Combination Result VBA

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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. [SOLVED] Need formula to generate combination of five columns with three possible answers in each
    By louhilla in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-26-2018, 03:33 PM
  2. Generate list of combination from chosen factors
    By Corsa88 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-21-2016, 01:06 AM
  3. How to generate a list of pairs for all combination possible?
    By treue in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-05-2015, 09:23 AM
  4. [SOLVED] How to generate a list of pairs for all combination possible?
    By Laeticha in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-05-2015, 08:56 AM
  5. How to account for head to head matchup in Excel with other tie breakers
    By Biogeek1 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-26-2013, 05:18 PM
  6. Calculate average of last two outcomes of last two head-to-head clashes
    By wishkey in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-07-2013, 08:17 AM
  7. I need to generate a list of combination
    By ciprianb in forum Excel - New Users/Basics
    Replies: 10
    Last Post: 02-28-2011, 01:28 PM

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