+ Reply to Thread
Results 1 to 10 of 10

Generate automatically double

  1. #1
    Registered User
    Join Date
    03-30-2017
    Location
    Brazil
    MS-Off Ver
    2019
    Posts
    54

    Post Generate automatically double

    Hi everyone,

    I'm creating a spreadsheet on which I need to draw a pair.
    Basically I have two groups of people. And when I click on the button, I need to pair people from Group 1 with people from Group 2.
    And so on until all of group 1 compete with all of group 2. If possible, one draw at a time.

    teste.PNG

    I tested some options to generate random draws, but I couldn't implement it for my case.

    Could someone help me in this case?

    Grateful in advance
    Attached Files Attached Files

  2. #2
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,742

    Re: Generate automatically double

    Can't be formula? You need a macro?
    Happy with my answer * Add Reputation.
    If You are happy with solution, please use Thread tools and mark thread as SOLVED.

  3. #3
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,577

    Re: Generate automatically double

    Code for macro
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  4. #4
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,742

    Re: Generate automatically double

    Can be macro why not.
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    03-30-2017
    Location
    Brazil
    MS-Off Ver
    2019
    Posts
    54

    Re: Generate automatically double

    Perfect. Thank you very much!

  6. #6
    Registered User
    Join Date
    03-30-2017
    Location
    Brazil
    MS-Off Ver
    2019
    Posts
    54

    Re: Generate automatically double

    A doubt:
    What would the code look like if I have a column with more members than another column?
    Example: Group 1 with 10 members and Group 2 with 15 members.
    In his code, he perform dulas with blank cells.

  7. #7
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,742

    Re: Generate automatically double

    Please Login or Register  to view this content.
    Attached Images Attached Images

  8. #8
    Forum Guru
    Join Date
    04-23-2012
    Location
    New Jersey, USA
    MS-Off Ver
    Excel 365
    Posts
    2,408

    Re: Generate automatically double

    This CommandButton Click event code assumes no gaps in the data in Columns A and C, that Columns A, C and G:H have header text already in them. This code will output a single non-repeated pairing with each press of the CommandButton. To do a new pairing, simply delete the data from cells G2:H2 down to the end of the data in those columns... once you have done that, a new set of pairings will be generated the next time the CommandButton is pressed.
    Please Login or Register  to view this content.

  9. #9
    Registered User
    Join Date
    03-30-2017
    Location
    Brazil
    MS-Off Ver
    2019
    Posts
    54

    Re: Generate automatically double

    Perfect!
    Thank you very much everyone for your help.

  10. #10
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,577

    Re: Generate automatically double

    For different Length groups.
    A2:A6 and C2:C7
    Please Login or Register  to view this content.

+ 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] Double click on Value <> 0 to generate email
    By Howardc1001 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-12-2020, 05:59 AM
  2. Generate non-repeating random Double-Digit numbers
    By jomili in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-17-2019, 09:32 AM
  3. Replies: 6
    Last Post: 04-29-2019, 08:32 AM
  4. automatically generate hyperlink
    By mickyh in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-04-2012, 01:18 PM
  5. Automatically Generate Lines
    By rikapple in forum Excel General
    Replies: 1
    Last Post: 11-19-2007, 03:35 PM
  6. new row to generate automatically
    By Pyrex238 in forum Excel General
    Replies: 4
    Last Post: 06-19-2007, 02:39 PM
  7. Generate permutations but delete double entries
    By as_sass in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-12-2006, 02:35 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