+ Reply to Thread
Results 1 to 3 of 3

Randnmber Generator with no numbers repeated

  1. #1
    Forum Contributor
    Join Date
    07-21-2013
    Location
    washington dc
    MS-Off Ver
    365 MSO
    Posts
    473

    Randnmber Generator with no numbers repeated

    Hi-

    What formula can I use in excel to randomly generate numbers of between 1-150, and not repeat a number twice? using
    Please Login or Register  to view this content.
    does not work. It repeats numbers.

    Thansk

  2. #2
    Forum Expert
    Join Date
    06-26-2010
    Location
    Austin, TX
    MS-Off Ver
    Excel 2010
    Posts
    1,673

    Re: Randnmber Generator with no numbers repeated

    You need a shuffle routine. Here is a link to some code I posted a few years ago.
    http://www.excelforum.com/excel-form...ing-false.html

    To use it, fill a row with the numbers 1 through 150 (let's say A1:ET1). Highlight A2:ET2 and type =Shuffle(A1:ET1) and then hit Ctrl-Shift-Enter. The second row will now have the numbers shuffled.
    Pauley
    --------
    If I helped with your issue, I'd appreciate a rep bump (hit the '*' icon to the bottom left of this post).

  3. #3
    Forum Expert ben_hensel's Avatar
    Join Date
    01-26-2012
    Location
    Northeast USA
    MS-Off Ver
    Office 365
    Posts
    2,043

    Re: Randnmber Generator with no numbers repeated

    The birthday problem, eh?

    With an array formula:
    Please Login or Register  to view this content.
    Or, with a UDF.

    Either of those do it for you?
    Click the [* Add Reputation] Button to thank people for help!
    Post Attachment: Click [Go Advanced] under the reply box; then click [Manage Attachments] to launch the attachments dialogue.
    Mark Thread Solved: Go to the top of the first post; Select [Thread Tools] dropdown; Pick the [Mark thread as Solved] option.

+ 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. Defined numbers - generator.
    By LOxEN in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 11-02-2012, 10:16 AM
  2. Need Help with a Random Number Generator with Weighted Probability for Certain Numbers
    By michaeljoeyeager in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-13-2012, 02:48 PM
  3. Random numbers generator
    By Eric Excels in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-14-2011, 08:49 AM
  4. Random number generator and matching all numbers
    By Zyphon in forum Excel General
    Replies: 2
    Last Post: 03-14-2008, 04:40 AM
  5. Replies: 2
    Last Post: 05-02-2006, 11:20 AM

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