+ Reply to Thread
Results 1 to 7 of 7

Cup Draw

  1. #1
    Forum Contributor
    Join Date
    02-10-2007
    Location
    Manchester, England
    MS-Off Ver
    2013
    Posts
    133

    Cup Draw

    My son is doing a soccer league in excel and he whats to do a cup draw, so we used the vlookup routine and got the 1st 32 teams drawn, but can not do the last 32 teams, i have included the sheet with the functions on, can anybody help us please
    Attached Files Attached Files

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: Cup Draw

    try this:

    =VLOOKUP(ROW(E2)-1;$B$1:$C$64;2;0)&" - "&VLOOKUP(66-ROW(E2);$B$1:$C$64;2;0)

    (replace ; with , if needed).

    With this you don't need helper column (1,2,3,4,...)
    Also, if you need them in two separate columns jut place second VLOOKUP formula in differenzt column...

    hte table is set to 64 teams starting in 2nd row of any column... But if you need various number of teams it can be solved...

  3. #3
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Cup Draw

    Your formula stops in Cell E32. You need to drag that down.

    Also, once you have used the RAND() function to create your ranking. Copy and Paste Special > Values over Column A to prevent them from changing everytime something is changed on the spreadsheet.

    Also, but not crucial, your VLOOKUP formula only needs to cover the range of $B$1:$C$64, not N64.
    Make sense?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  4. #4
    Forum Contributor
    Join Date
    02-10-2007
    Location
    Manchester, England
    MS-Off Ver
    2013
    Posts
    133

    Re: Cup Draw

    Quote Originally Posted by zbor View Post
    try this:

    =VLOOKUP(ROW(E2)-1;$B$1:$C$64;2;0)&" - "&VLOOKUP(66-ROW(E2);$B$1:$C$64;2;0)

    (replace ; with , if needed).

    With this you don't need helper column (1,2,3,4,...)
    Also, if you need them in two separate columns jut place second VLOOKUP formula in differenzt column...

    hte table is set to 64 teams starting in 2nd row of any column... But if you need various number of teams it can be solved...
    Tried to use the formula but excel sends up an error in the -1 part of the formula, where am i going wrong, can you show me an example on how it works

  5. #5
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: Cup Draw

    Sure...

    Cup(1).xls

    Don't know what's problem.. work for me...

  6. #6
    Forum Contributor
    Join Date
    02-10-2007
    Location
    Manchester, England
    MS-Off Ver
    2013
    Posts
    133

    Re: Cup Draw

    Thanks that works, i was doing it all in one cell

  7. #7
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: Cup Draw

    But beware if rand() bring you two equal numbers

+ 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