Results 1 to 3 of 3

randbetween different than

Threaded View

  1. #1
    Forum Contributor
    Join Date
    12-02-2009
    Location
    Birmingham, UK
    MS-Off Ver
    2007
    Posts
    185

    randbetween different than

    Hi Guys,

    I was trying to put a formula down to give me in one line of six cells a random number between a range of numbers (the same range for all cells) but in each cell the number to be different than in the others.

    So if the range would be 1-99 then let me say:

    5 66 24 ...

    I have tried for the first cell:
    =randbetween(1,99)
    for the next one I tried:
    =if(randbetween(1,99)=cell1,randbetween(1,99),randbetween(1,99))
    hoping that it will exclude the previous result.

    Even when living a static value in cell one the cell two came back occassionaly with the same number.

    Would anyone of you know if there is an alteration to that formula that I can use ar maybe a macro with connection to some formula to live values only when all the numbers deffire from each other?

    I know how to make macro for values only but only bassed on selection / copy / paste special / values only. Don't know if there is a way to give conditions to copy.

    Thanks for reading and giving it a go.
    Last edited by Ramzes; 02-16-2011 at 10:04 AM. Reason: Changing Prefix
    ...and this is when I walk in, dressed fully in white...

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