+ Reply to Thread
Results 1 to 7 of 7

Generate all possible combinations of 8 football games (1X2) and add some requirements

  1. #1
    Registered User
    Join Date
    02-13-2025
    Location
    Stockholm, Sweden
    MS-Off Ver
    Excel 2021 (MAC)
    Posts
    2

    Generate all possible combinations of 8 football games (1X2) and add some requirements

    Hi,

    I have a question regarding the possible combinations of 8 football games with 3 possible outcomes.

    I have it down as this:

    MATCH HOME DRAW AWAY
    1 1 X 2
    2 1 X 2
    3 1 X 2
    4 1 X 2
    5 1 X 2
    6 1 X 2
    7 1 X 2
    8 1 X 2

    I want to be able to print out all 6561 combinations in excel.
    And to get results like:
    1,1,1,1,1,1,1,1
    1,1,1,1,1,1,1,X
    .
    .
    .
    2,2,2,2,2,2,2,X
    2,2,2,2,2,2,2,2

    In other words, all possible combinations.


    I would also like to add another row besides it where I have the percentage of every outcome between the teams multiplied. Simple example below:

    MATCH HOMEp DRAWp AWAYp
    1 0.6 0.3 0.1
    2 0.4 0.4 0.2
    3 0.1 0.5 0.4
    4 0.8 0.1 0.1
    5 0.7 0.1 0.2
    6 0.6 0.2 0.2
    7 0.2 0.4 0.4
    8 0.6 0.3 0.1


    So that every unique combination has a probability that corresponds to it. For example the outcome 1,1,1,1,1,1,1,1 would have the probability 0.6*0.4*0.1*0.8*0.7*0.6*0.2*0.6 = 0.00096768.

    Or if it's possible to put in a requirement that only prints the outcomes which corresponds to a probability above a certain value, let's say 0.0005. So instead of printing 6561 combinations, it prints maybe 300.

    I have tried and tried, but nothing seems to work for me, so any help would be very appreciated.
    Attached Files Attached Files
    Last edited by FootballStatistician; 02-14-2025 at 05:58 AM. Reason: Added excel document

  2. #2
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2504
    Posts
    13,736

    Re: Generate all possible combinations of 8 football games (1X2) and add some requirements

    FootballStatistician welcome to the forum.

    Please complete your profile to reflect the product and version you want this to work in.

    The best solutions often rely on knowing WHICH Office PRODUCT (Excel, NOT Windows) that you have. Please check that your forum profile is up-to-date. If you aren't sure, in Excel go to File/Account and report what it says below the MS logo at the top of that page. If your version is for Mac, please also state this.

    The three most recent Excel PRODUCTS are Excel 2019, Excel 2021 and MS365 - if you are using MS365, please give this name along with the Version number in your profile (e.g. MS365 (PC) Version 2211). The version number is in the About Excel section further down the Account page.

    Also:
    Please upload a workbook or a representative cut down copy, anonymised if necessary. It is always easier to advise if we can see your request in its context.

    Show a before and after situation with manually calculated results, explaining which information is data and which is results, and if it's not blindingly obvious how you have arrived at your results some explanatory notes as well.

    To upload a file click the Go Advanced button at the foot of your post, look underneath the post area for the Manage Attachments section and take it from there.
    Dave

  3. #3
    Registered User
    Join Date
    02-13-2025
    Location
    Stockholm, Sweden
    MS-Off Ver
    Excel 2021 (MAC)
    Posts
    2

    Re: Generate all possible combinations of 8 football games (1X2) and add some requirements

    Thank you for the assistance. I have uploaded an excel document now and added Excel 2021 (MAC) to my profile. However It also says "Version 16.54 (21101001). I am unsure if this is the important info as I have a Microsoft 365 Subscription.

  4. #4
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,924

    Re: Generate all possible combinations of 8 football games (1X2) and add some requirements

    If you have O365, try this in C15.
    Please Login or Register  to view this content.
    [/CODE]
    Attached Files Attached Files

  5. #5
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2504
    Posts
    13,736

    Re: Generate all possible combinations of 8 football games (1X2) and add some requirements

    Quote Originally Posted by FootballStatistician View Post
    Thank you for the assistance. I have uploaded an excel document now and added Excel 2021 (MAC) to my profile. However It also says "Version 16.54 (21101001). I am unsure if this is the important info as I have a Microsoft 365 Subscription.
    Since I am not familiar with Mac I cannot comment on the version numbers. What you have done is likely sufficient. Do check / update your product from time to time. Those updates often introduce new features/functions creating new solution possibilities. It helps us to help you.

    Thank you again for updating your profile.

  6. #6
    Registered User
    Join Date
    04-13-2022
    Location
    Kristianstad, Sweden
    MS-Off Ver
    2007/2016
    Posts
    30

    Re: Generate all possible combinations of 8 football games (1X2) and add some requirements

    Hej, Hello FootballStatistician Stockholm

    This is 1 way of generating all possible combination of 8 football games (1X2).
    I'm using 8 loops in VBA to generate all 6561 combination +probability
    Also a request for specific match.
    VBA done by a probee, a pro have done i otherwise.
    Don't know if I got it right about variation and probability.
    If I'm wrong let me know.
    I hope it works on Mac excel.
    Try out this spreadsheet made on Office 2007 Excel.
    Place for inprovement.
    /LGS
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    04-13-2022
    Location
    Kristianstad, Sweden
    MS-Off Ver
    2007/2016
    Posts
    30

    Re: Generate all possible combinations of 8 football games (1X2) and add some requirements

    Hej, Hello FootballStatistician Stockholm

    Have done some cleaning up off my last excel sheet.
    Match-number, CSV of result and probability is now in a pivot-table.
    There are a lot off duplicates off probability.
    Don't know how you will handle that.
    Is this what you wanted, let me know.
    I hope it works on Mac excel.
    Final contribution from me

    /LGS
    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: 1
    Last Post: 10-18-2022, 03:02 PM
  2. [SOLVED] Football League Modelling - Formula to Return Result of Last 5 Games
    By Sebgrs in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-05-2022, 06:01 PM
  3. Running count of football team's last ten games with x goals
    By fetaklaci in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-15-2021, 08:43 AM
  4. Soccer-Generate all possible games in Group
    By ionelz in forum Excel General
    Replies: 8
    Last Post: 10-13-2020, 09:16 PM
  5. [SOLVED] Football table last eight games, last five home & last five aways
    By Tomtomtosh in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-12-2018, 04:18 PM
  6. Generate all possible combinations - 8 games, 2 teams, 3 outcomes
    By Aravia in forum Excel Programming / VBA / Macros
    Replies: 27
    Last Post: 05-30-2018, 10:39 PM
  7. Sports: All possible combinations for up to 15 games; 2 teams; 2 outcomes
    By ryanseal in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-05-2017, 09:09 PM

Tags for this Thread

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