Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Simple way to choose random cell from a list in Google Sheets

Do you have a list of names in one column and want to draw between them?

Here is the simplest way to do this.

like image 433
Digital Farmer Avatar asked Oct 09 '19 16:10

Digital Farmer


2 Answers

one character shorter solution would be:

=INDIRECT("A"&RANDBETWEEN(1,10))

0

like image 118
player0 Avatar answered Oct 22 '22 00:10

player0


For this we will use two functions: INDEX and RANDBETWEEN

If you want to randomly choose one cell between A1 and A10 the formula would look as follows:

=INDEX(A1:A10,RANDBETWEEN(1,10))

And if you decide to make more than one draw, you can type CONTROL+R, automatically the formula is updated within the cell, delivering a new result.

like image 36
Digital Farmer Avatar answered Oct 21 '22 22:10

Digital Farmer