Hi there
Can you randomly select 5 out of 200 numbers?
i tried to do it in excel using the rand() function, but evry time I want to sort by the random number column the numbers change and I cannot see the first 5 lowest numbers.
That's because every time you sort or indeed change anything, new numbers are being generated. The nature of excell is that any change recalculates the cells effected, in this case excuting the rand() function.
Hi, if you have 2 columns the first containing the 200 numbers that you wish to make selections from and the second containing the function =RAND()*(200-1)+1 in each cell adjacent to a number. Then you 'copy' and 'paste special' 'values' you will have an array that you can sort without having any changes, apart from changes to the original array. It is fairly trivial to produce a macro with a button on the sheet to do this.
I should have said that the function =RAND()*(200-1)+1 just generates a random number between 1 & 200. You can then sort the list using DATA & SORT & then just select the top or bottom or middle five or whatever.