I'm using this formula:
INDEX($A:$A;RANDBETWEEN(1;COUNTA($A:$A));1)
to return values from a column to a cell. It works fine, but I need to return 4 values total, and I need all of them to be unique. Any ideas?
I'm using this formula:
INDEX($A:$A;RANDBETWEEN(1;COUNTA($A:$A));1)
to return values from a column to a cell. It works fine, but I need to return 4 values total, and I need all of them to be unique. Any ideas?
Use a formula like this:
With your local settings:
Since this does refer to the cells above the formula it must be placed in the second or lower row and the
$C$1:C1
must refer to the cell directly above the first instance of the formula.Then drag it down 4 times.
Aggregate is an array formula type. The references should only include those of the data set. Full column references should be avoided as it will force the Aggregate to do more calculations than needed, and will return blanks in this specific case.
To automatically include only the data set, grow or shrink depending on the data in column A, use this:
Edit #1
To drag to the right use this:
And change the
$B$2:B2
to the cell directly left of the first placement of the formula.