# How To Select A Random Item From A List

## Example

``` =INDEX(B3:B6,RANDBETWEEN(1,ROWS(B3:B6)))```

## Generic Formula

``` =INDEX(List,RANDBETWEEN(1,ROWS(List)))```

List – This is the list of items to select from.

## What It Does

This formula will return a random selection from a given list with each item in the list having an equal probability of being selected.

## How It Works

ROWS(List) will return the number of rows in the List. In our example there are 4 rows in the list.

RANDBETWEEN(1,4) will return a random integer number between 1 and 4 where each number has an equal probability of being selected. This number is then used as the row index to return an item in the list.

INDEX(List,N) will return the item in row N of the List. In our example N will be a random number between 1 and 4.

### John MacDougall

John is a Microsoft MVP and qualified actuary with over 15 years of experience. He has worked in a variety of industries, including insurance, ad tech, and most recently Power Platform consulting. He is a keen problem solver and has a passion for using technology to make businesses more efficient.

### Subscribe

Subscribe for awesome Microsoft Excel videos ðŸ˜ƒ

## Related Posts

#### 8 Ways to Apply a Formula to an Entire Column in Microsoft Excel

Are you wondering how to apply a formula to an entire column in Excel? Read...

#### 5 Ways to Lock and Unlock Formulas in Microsoft Excel

Do you want to lock the formulas in your Excel sheet to prevent other users...

#### 9 Ways to Show Formulas in Microsoft Excel

This post is going to show you all the different ways you can show the...