+ Reply to Thread
Results 1 to 3 of 3

=RANDBETWEEN Function for growing price list with no duplicates...

  1. #1
    Forum Contributor
    Join Date
    02-26-2009
    Location
    Canada
    MS-Off Ver
    Excel 2013
    Posts
    209

    =RANDBETWEEN Function for growing price list with no duplicates...

    I'm wanting to use the =RANDBETWEEN Function for a growing price list (updated monthly) where I'm wanting to generating my own random codes, but I don't want any duplicates.

    Example. I have a price list with 1000 lines. I want to generate a number from 100000 to 999999 that is random without repeating. I'm not sure how good the =RANDBETWEEN function works for this...

    The next problem is, this price list will keep expanding. Meaning next month I have to add 1000 more codes that I also want to generate Random numbers from 100000 to 999999 that will be added to the list of random generated numbers I created last month, without creating duplicate from the numbers created last year.

    Is this possible?

    Thanks,

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: =RANDBETWEEN Function for growing price list with no duplicates...

    Why not just put 100000 in a1
    100001 in a2
    Then put =rand() in b1 & b2 fill both
    Down to 9999999
    Then sort by col b then you'll have a random list
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Forum Contributor
    Join Date
    02-26-2009
    Location
    Canada
    MS-Off Ver
    Excel 2013
    Posts
    209

    Re: =RANDBETWEEN Function for growing price list with no duplicates...

    Hey, that sounds great! Almost to easy :-) Solved!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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