Skip to content

Pick a random item from a list

Choose a random name or row, for giveaways or sampling.

The formula

Argument separator
Excel and Google Sheets
=INDEX(A2:A100, RANDBETWEEN(1, COUNTA(A2:A100)))

How it works

  1. COUNTA(A2:A100)

    How many entries the list has (no gaps allowed).

  2. RANDBETWEEN(1, …)

    A random position in the list.

  3. INDEX(A2:A100, …)

    The entry at that position.

Example

A: NameResult
AnaCleo (changes on every edit)
Ben
Cleo

Tips

  • The pick changes every time the sheet recalculates. Copy and paste it as a value to keep it.