+ Reply to Thread
Results 1 to 7 of 7

help: need spreadsheet that you specify number of teams in group then displays win loss

  1. #1
    Registered User
    Join Date
    04-24-2014
    Location
    Sherwood Park
    MS-Off Ver
    Excel 2007
    Posts
    4

    help: need spreadsheet that you specify number of teams in group then displays win loss

    Hi all,
    What i'm looking to do is create a spreadsheet where the first page allows me to input the number of teams in the group.
    The teams cannot play others in the group except the ones they are paired with.
    eg. "Enter number of team pairs in set" (in this case 4)
    Team 1a vs Team 1b
    Team 2a vs Team 2b
    Team 3a vs Team 3b
    Team 4a vs Team 4b

    After number of teams in set is established click a start button on the first tab of the spreadsheet.

    this auto generates a new tab with all the possible win/loss combinations of 4 team pairs.
    New Picture.jpg


    if the number of teams on Tab 1 is changed (say to 6) and the start button is clicked, another new tab is generated with all possible win loss combinations of a 6 team set.

    Is this possible? and how easy would it be?
    remember 1a vs 1b can only be win or lose
    and the win lose combinations are for the set of 4 matches ( or more matches if specified on the first tab and clicked).
    if you put 7 in for the number of team pairs then it would be win loss combos for 7 pairs of teams.
    Thank you in advance.
    mrhempNew Picture.jpg

  2. #2
    Valued Forum Contributor natefarm's Avatar
    Join Date
    04-22-2010
    Location
    Wichita, Kansas
    MS-Off Ver
    2016
    Posts
    1,020

    Re: help: need spreadsheet that you specify number of teams in group then displays win los

    The following uses a formula to create a binary number with the number of digits equal to the number of team pairs, then creates W/L blocks for each possibility.

    Please Login or Register  to view this content.
    Acts 4:12
    Salvation is found in no one else, for there is no other name under heaven given to mankind by which we must be saved.

  3. #3
    Registered User
    Join Date
    04-24-2014
    Location
    Sherwood Park
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: help: need spreadsheet that you specify number of teams in group then displays win los

    Tried it, and getting a Run-Time error "1004"
    Application-Defined or Object-defined error at the following line.

    With Range(Cells(Rw, Col), Cells(Rw + Pairs - 1, Col + 1))

    But thanks for the help
    mrhemp

  4. #4
    Registered User
    Join Date
    04-24-2014
    Location
    Sherwood Park
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: help: need spreadsheet that you specify number of teams in group then displays win los

    Tried it, and getting a Run-Time error "1004"
    Application-Defined or Object-defined error at the following line.

    With Range(Cells(Rw, Col), Cells(Rw + Pairs - 1, Col + 1))

    But thanks for the help
    mrhemp

  5. #5
    Valued Forum Contributor natefarm's Avatar
    Join Date
    04-22-2010
    Location
    Wichita, Kansas
    MS-Off Ver
    2016
    Posts
    1,020

    Re: help: need spreadsheet that you specify number of teams in group then displays win los

    It works for me in the attached. Just open it and run the CreateWLBlocks subroutine.
    TeamPairs.xlsm

  6. #6
    Registered User
    Join Date
    04-24-2014
    Location
    Sherwood Park
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: help: need spreadsheet that you specify number of teams in group then displays win los

    Awesome! Worked perfectly!! how would I change the subroutine if I wanted to change the number of teams to 5 pairs, 6 pairs or 7 pairs?

    I admit VBA code is over my head, the only programming I ever did was BASIC back in the '80's lol.

  7. #7
    Registered User
    Join Date
    04-24-2014
    Location
    Sherwood Park
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: help: need spreadsheet that you specify number of teams in group then displays win los

    Oh I see! change the reference number on the first tab and re-run!
    You my friend are an absolute genius!!

    mrhemp

  8. #8
    Valued Forum Contributor natefarm's Avatar
    Join Date
    04-22-2010
    Location
    Wichita, Kansas
    MS-Off Ver
    2016
    Posts
    1,020

    Re: help: need spreadsheet that you specify number of teams in group then displays win los

    Sorry -- thought I had pointed that out in the code comments. Glad you figured it out.

+ 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] Two columns of teams, count the number of times the teams meet?
    By tpe102 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-04-2013, 09:21 AM
  2. Replies: 0
    Last Post: 07-15-2013, 11:57 AM
  3. Sort and Rank teams Win Loss Draw Tally in round robin tournament
    By jammjamm in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 12-07-2012, 06:19 PM
  4. Replies: 4
    Last Post: 09-21-2011, 09:17 AM
  5. Excel 2007 : Reducing number of teams in Excel spreadsheet
    By KillieChris in forum Excel General
    Replies: 4
    Last Post: 11-25-2010, 03:55 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