+ Reply to Thread
Results 1 to 4 of 4

Randomize on Command

  1. #1
    Registered User
    Join Date
    06-22-2010
    Location
    Washington D.C.
    MS-Off Ver
    Excel 2003
    Posts
    3

    Randomize on Command

    Okay, I've tried everything, I've looked everywhere and I simply can't find the answer.....

    I have a random between formula in a worksheet. As expected it will randomize on recalculation, however I don't want this to do this! I need the sheet to be able to be used and have calculation run, but stop the Randomizing.... However, I need to be able to maybe on a click of a button re-randomize the list. I need to be able to do this when ever I want but i can't have it just go off on its own, I do not want to just paste the result.....

    I want to Randomize on Command.

  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: Randomize on Command

    is this one cell a range or what? is it rand between in a range or is it just randomising a range?
    "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
    Registered User
    Join Date
    06-22-2010
    Location
    Washington D.C.
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Randomize on Command

    =INDEX(Sheet4!B21:B86,RANDBETWEEN(1,COUNTA(Sheet4!B21:B86)),1)

    Thats the code, I need it to randomize only when I tell it to

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

    Re: Randomize on Command

    ok so essentially you are having stuff sequentially in b21:b86 and rand will pick one from that list.
    try
    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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