There has got to be a simple way.
What I'm trying to do. I want to randomly generate the numbers 1-6 without duplication.
So if A1 randomly comes up 4, I need B1 to be any number between 1-6 except 4. Lets say 2, now I need C1 to be any number between 1-6 except 4 and 2. And so on.
I'm just looking to generate a table 6 rows by 6 colums where each row has the numbers 1-6 generated randomly.
Now, I did a google search and found a macro for Excel called RandLotto which generates a given number of numbers from a given range, but of course it didn't translate.
Suggestions?
Coquihallagordon
[Solved] Random order list
-
Coquihallagordon
- Posts: 2
- Joined: Sun Apr 15, 2012 8:55 pm
[Solved] Random order list
Last edited by Coquihallagordon on Sun Apr 15, 2012 10:30 pm, edited 1 time in total.
OpenOffice 3.1 on Windows Vista
Re: Random order list.
Let A1:A6 be =RAND()
=RANK($A1;$A$1:$A$6) copy down.
=RANK($A1;$A$1:$A$6) copy down.
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
-
Coquihallagordon
- Posts: 2
- Joined: Sun Apr 15, 2012 8:55 pm
Re: Random order list.
Ok I entered =RAND() into cells A1 through A6
and entered =RANK($A1;$A$1:$A$6) in cells B1:B6
and it works perfectly. I don't claim to understand it, but it works. Thank you for your swift reply.
Gordon
and entered =RANK($A1;$A$1:$A$6) in cells B1:B6
and it works perfectly. I don't claim to understand it, but it works. Thank you for your swift reply.
Gordon
OpenOffice 3.1 on Windows Vista
- kingfisher
- Volunteer
- Posts: 2127
- Joined: Tue Nov 20, 2007 10:53 am