+ Reply to Thread
Results 1 to 6 of 6

Random 2 number picker

  1. #1
    Registered User
    Join Date
    11-07-2013
    Location
    Norwich
    MS-Off Ver
    Excel 2010
    Posts
    28

    Random 2 number picker

    Hello,
    I need a macro that will randomly pick 2 numbers from 1 to 8 each number must be different example 3&6, 4&5, 7&1, 8&3, 2&7 and so on.
    I want to use this as a lucky dip to be able to press a button and have the 2 digits displayed on the sheet in cells A8 and B8.
    I have tried doing this myself for several days now without any joy so I am asking for help please.
    Thanks.
    Last edited by harry h; 06-11-2014 at 03:29 AM. Reason: make clear

  2. #2
    Valued Forum Contributor Hawkeye16's Avatar
    Join Date
    02-27-2013
    Location
    Holland
    MS-Off Ver
    ├•┤ Pew Pew
    Posts
    441

    Re: Random 2 number picker

    Please Login or Register  to view this content.
    Last edited by Hawkeye16; 06-11-2014 at 04:03 AM. Reason: Better Sub name

  3. #3
    Registered User
    Join Date
    06-03-2014
    Posts
    8

    Re: Random 2 number picker

    how about just a formula

    Please Login or Register  to view this content.
    (using a helper column)
    Last edited by scottieh; 06-11-2014 at 04:06 AM.

  4. #4
    Valued Forum Contributor Hawkeye16's Avatar
    Join Date
    02-27-2013
    Location
    Holland
    MS-Off Ver
    ├•┤ Pew Pew
    Posts
    441

    Re: Random 2 number picker

    scottieh - That second formula will create a circular reference error. Your random number did make me notice mine did not give equal weighting to the end points... This gives equal weighting...

    Please Login or Register  to view this content.
    Last edited by Hawkeye16; 06-11-2014 at 04:21 AM.

  5. #5
    Registered User
    Join Date
    06-03-2014
    Posts
    8

    Re: Random 2 number picker

    woops i had it in columns B8 - D8...
    actually this is probably not an exact result it would create some small amount of bias and to fix that I might need to use more cells... so probably best to just go with your macro...
    Last edited by scottieh; 06-11-2014 at 04:29 AM.
    We wants it, we needs it. Must have the precious.

  6. #6
    Registered User
    Join Date
    11-07-2013
    Location
    Norwich
    MS-Off Ver
    Excel 2010
    Posts
    28

    Re: Random 2 number picker

    Wow thanks guys,
    You did it it took me days not to be able to do it, but I know why now.
    Thank You all.
    harry h.

    (All will soon know his name as Jehovah the one and only true God)

+ 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. Name Picker (Random)
    By Andrew.Trevayne in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-16-2013, 07:25 AM
  2. Replies: 5
    Last Post: 06-21-2013, 10:40 AM
  3. A Random Student Name Picker
    By Transitory in forum Excel General
    Replies: 1
    Last Post: 09-29-2012, 12:59 AM
  4. Random team picker
    By Sheepkin_Coat in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-03-2011, 04:01 PM
  5. How do I find random number in list of random alpha? (Position is.
    By jlahealth-partners in forum Excel General
    Replies: 0
    Last Post: 02-08-2005, 02:06 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