Hi,
I'm running into problems with a wee project I'm working on. It involves selecting items for auditing from a list, randomly without repeats.
In cell A1 I have the number of reports required to be selected - this could be anything from 1 - 1000.
A2 has the maximum number of the range that I want the random numbers to lie in, the minimum being 1.
I would like to populate a column of numbers, from B1 down with random selections between 1 and the maximum (from cell A2) without any repeats.
So if A1 contains '20' and A2 contains '100' I would like to generate 20 random numbers that lie between 1 and 100 and have these copied to cells B1 to B100.
I tried formulaes but there doesn't seem to be an easy way without the possiblity of repeats. So I've attempeted some VB but can't get that to work either.
Could anyone provide a possible way of getting this to work.
Thanks in advance
I'm running into problems with a wee project I'm working on. It involves selecting items for auditing from a list, randomly without repeats.
In cell A1 I have the number of reports required to be selected - this could be anything from 1 - 1000.
A2 has the maximum number of the range that I want the random numbers to lie in, the minimum being 1.
I would like to populate a column of numbers, from B1 down with random selections between 1 and the maximum (from cell A2) without any repeats.
So if A1 contains '20' and A2 contains '100' I would like to generate 20 random numbers that lie between 1 and 100 and have these copied to cells B1 to B100.
I tried formulaes but there doesn't seem to be an easy way without the possiblity of repeats. So I've attempeted some VB but can't get that to work either.
Could anyone provide a possible way of getting this to work.
Thanks in advance