+ Reply to Thread
Results 1 to 7 of 7

Reverse Raffle setup: using Randbetween without duplicates

  1. #1
    Registered User
    Join Date
    01-22-2018
    Location
    Warren, Ohio
    MS-Off Ver
    2016
    Posts
    4

    Reverse Raffle setup: using Randbetween without duplicates

    Hello all,

    I am trying to use Excel to run a reverse raffle at a rotary club function. I have a graph set up where I can color-fill in numbers that I have already pulled. I have NO problem doing this manually.

    My issue is: I am trying to set up a randbetween formula that will exclude any numbers already drawn. Say the criteria set is 1:200. I have the numbers listed in column Q away from the table. The big issue is: I do not want to calculate all numbers instantly, rather, use F9 to draw a new random number each time it is pressed, without duplicating. Is there a way to use the randbetween formula or any formula that will not duplicate numbers I enter into a column? Say Column R, since it is right next to the list in column Q.

    Thank you in advance for any insight on this.

    Matt

  2. #2
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: Reverse Raffle setup: using Randbetween without duplicates

    Here is one way to do it using VBA code. Click the Randomize button to randomize numbers in column Q without duplicates. If there are any duplicates, the cell will fill with red color.
    msauer RandBetween.xlsm
    If you are familiar with VBA, another option is at the link below.
    http://mcgimpsey.com/excel/udfs/randint.html
    1N73LL1G3NC3 15 7H3 4B1L17Y 70 4D4P7 70 CH4NG3 - 573PH3N H4WK1NG
    You don't have to add Rep if I have helped you out (but it would be nice), but please mark the thread as SOLVED if your issue is resolved.

    Tom

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

    Re: Reverse Raffle setup: using Randbetween without duplicates

    This code creates Random numbers between two values without duplicate.
    Numbers will be listed below the Activecell
    Code
    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
    Registered User
    Join Date
    01-22-2018
    Location
    Warren, Ohio
    MS-Off Ver
    2016
    Posts
    4

    Re: Reverse Raffle setup: using Randbetween without duplicates

    Thank you, I will give this a try.

    Matt

  5. #5
    Registered User
    Join Date
    01-22-2018
    Location
    Warren, Ohio
    MS-Off Ver
    2016
    Posts
    4

    Re: Reverse Raffle setup: using Randbetween without duplicates

    This is so close. I changed the fill to include cells Q1:200 in order to incorporate all 200 tickets. However, I am running into a problem as I need one of the cells (any one in particular, I picked Q1) to display a random number with no repeats. This formula will give me an independent order each time, but may start out with the same number in a given cell (Q1). I'm not sure if this is possible in Excel.

    Thank you for your insight.
    Matt

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

    Re: Reverse Raffle setup: using Randbetween without duplicates

    Change this line
    MinVal = InputBox("Enter Minimum Value")

    as
    MinVal = ActiveSheet.Range("Q1").Value

  7. #7
    Registered User
    Join Date
    01-22-2018
    Location
    Warren, Ohio
    MS-Off Ver
    2016
    Posts
    4

    Re: Reverse Raffle setup: using Randbetween without duplicates

    Thanks, I will try this as well.

+ 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. Separation of duplicates with RANDBETWEEN
    By wyturieowk in forum Excel General
    Replies: 1
    Last Post: 04-30-2017, 03:18 PM
  2. [SOLVED] Randbetween with No Duplicates
    By novice1239 in forum Excel General
    Replies: 6
    Last Post: 03-19-2017, 10:17 AM
  3. Reverse Raffle Sheet with Macro
    By glfngrl12 in forum Excel General
    Replies: 1
    Last Post: 01-31-2017, 01:58 PM
  4. Reverse raffle help
    By chapelhill in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-30-2017, 08:12 PM
  5. How do you avoid duplicates when using the randbetween function?
    By Monica in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-28-2014, 02:07 AM
  6. Randbetween without duplicates
    By Williamdry in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-29-2014, 09:27 AM
  7. [SOLVED] =RANDBETWEEN Function for growing price list with no duplicates...
    By unclejemima in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-18-2013, 03:29 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