I've been using formulae like the following
=INDEX($A$1:$A$35,RANK(A40,$A$40:$A$74))
where A1 thru A35 are items I want in random order, and A40 thru A74 are all =RAND()
to get some random cells from a column/row but I have the following problems:
1. I don't understand how to make it work with an array, I have like 35 rows and 20 columns. I tried typing like =INDEX($A$1:$T$35 for that and it returns errors
2. Too much copy pasting and changing one letter to make it work by doing rows or columns separately, especially since I might be expanding the array sooner than later and would need to basically redo the whole thing
For example, I tried this smaller 5x5 version:
=INDEX($A$1:$E$5,RANK(A40,$A$40:$E$44))
(and expanded it to 5x5 cells)
By which I mean take cells of rows 1 thru 5 and columns A thru E, randomize the order using my =RAND() cells in rows 40 thru 44 and columns A thru E and return some random cells.
I'm starting to think the problem is the program not being able to rank and/or index if it's not a single list like a row or a column but more of a matrix? Or am I doing something wrong?
If there's a completely different way to do this, I'm open to it, I just have a 35*20 cells and want to take a random sample of 50-100 of them, returned as another array of cells below it. (i.e. not like a randomized list of numbers in one cell)
=INDEX($A$1:$A$35,RANK(A40,$A$40:$A$74))
where A1 thru A35 are items I want in random order, and A40 thru A74 are all =RAND()
to get some random cells from a column/row but I have the following problems:
1. I don't understand how to make it work with an array, I have like 35 rows and 20 columns. I tried typing like =INDEX($A$1:$T$35 for that and it returns errors
2. Too much copy pasting and changing one letter to make it work by doing rows or columns separately, especially since I might be expanding the array sooner than later and would need to basically redo the whole thing
For example, I tried this smaller 5x5 version:
=INDEX($A$1:$E$5,RANK(A40,$A$40:$E$44))
(and expanded it to 5x5 cells)
By which I mean take cells of rows 1 thru 5 and columns A thru E, randomize the order using my =RAND() cells in rows 40 thru 44 and columns A thru E and return some random cells.
I'm starting to think the problem is the program not being able to rank and/or index if it's not a single list like a row or a column but more of a matrix? Or am I doing something wrong?
If there's a completely different way to do this, I'm open to it, I just have a 35*20 cells and want to take a random sample of 50-100 of them, returned as another array of cells below it. (i.e. not like a randomized list of numbers in one cell)