If you have a large range to look in (e.g. for a prize draw) then pu
the data to be returned in column B with column A numbering 1 upwards
The following formula will check how many rows in column A have dat
and generate a random integer number between 1 and that number. It wil
then look up that number in the table and return the corresponding valu
or tect in column B. The advantage is that as rows are added or delete
the formula will adjust to match it.
=VLOOKUP(RANDBETWEEN(A1,MAX(A:A)),A:B,2
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.