Select a random value from a column of values

  • Thread starter Thread starter Paul Gupta
  • Start date Start date
P

Paul Gupta

Hi, I have never programmed Excel before, but do use it a fair amount,
including use of built-in formulae. I would like to be able to select
a random value among a group of values - is this possible?

So for example, in a spreadsheet I have in column A a list of names
from cell 1 to cell 20. then I want to pick a name from random from
that list. How would I do?

Any input would be appreciated.

-- Paul
(e-mail address removed)

PS I do not have visual Studio/VB installed on my machine.
 
someone else will give you a simpler formula, but, if not, the following
will work:

=INDIRECT("A"&ROUND(RAND()*(20-1)+1,0))
 
Or, if you don't want to rely on an Analysis Toolpak function:

=INDEX(A:A,RAND()*20+1)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top