• Selecting a random name (2003)

    Author
    Topic
    #411440

    Is there a way to select a random name from a list?

    Viewing 2 reply threads
    Author
    Replies
    • #892040

      if your list is in A1:A100
      =index(a1:A100,INT(RAND()*100)+1)
      will give a random name from the list

      Steve

      • #892201

        Perfect! Thanks

      • #892202

        Perfect! Thanks

      • #892892

        Is there a method in Excel to prevent the same name from being selected a second time?

        • #892900

          Not with a formula, but you can do it with VBA code. The code in the workbook in This Post creates a random list of names for a mailing from a longer list with no repeats. It could be modified to do what you want. The code in This Post creates a list of random integers with no repeats that could be used as indexes to select from your list.

        • #892901

          Not with a formula, but you can do it with VBA code. The code in the workbook in This Post creates a random list of names for a mailing from a longer list with no repeats. It could be modified to do what you want. The code in This Post creates a list of random integers with no repeats that could be used as indexes to select from your list.

      • #892893

        Is there a method in Excel to prevent the same name from being selected a second time?

    • #894097

      Chona

      I did a very simple piece of code for a colleague who wanted to do monthly prize draw.

      I hope this helps

    • #894098

      Chona

      I did a very simple piece of code for a colleague who wanted to do monthly prize draw.

      I hope this helps

    Viewing 2 reply threads
    Reply To: Selecting a random name (2003)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: