I'm trying to create a list of random numbers that don't duplicate and then I want to take those numbers and generate multiple lists that are all random.
for example
for cells A1-A10 i want random numbers from 1-100
and then for A11-20 I want random numbers from 1-100
and then for A21 - A30 I want random number from 1-100
dragging down and repeating this seems possible with the MOD and OFFSET function which I'm still learning about.
For generating numbers I've tried
=RANDBETWEEN(1,100)
but it produces duplicates.
Ive also tried Putting
Rand()
in G1 and generating random numbers and then using
=RANK.EQ(G1,$G$1:$G$100)
along with:
=INDEX($H$1:$H$100, RANK(G1,$G$1:$G$100), 1)
which is better and doesn't produce duplicates but since i need multiple lists what happens is every list has the exact same data since the code is just replicating the same reference.
e.g : what i get is A1-10
A1 = 65
A2 = 54
A3 = 23
A4 = 31
A10= 23
then i try repeat the code for A11 - A 20 but it produces the same values.
even if i use
=INDEX($H$1:$H$50, RANK.EQ(G2, $G$1:$G$100) + COUNTIF($G$1:G2, G2) - 1, 1)
and then i have
=INDEX($H$1:$H$100, RANK(G1,$G$1:$G$100), 1)
in two differnt rows they produce the exact same random numbers
So i reckoned I need something that randomises every time.
Any help is appreciated