How to select cells randomly in Excel? (2024)

Supposing you have a column of values (A1: A15) in a worksheet, and now you need to select 5 random cells of them, how could you deal with this? In this article, I will show you some tricks to select cells randomly in Excel.

Select cells randomly from a column with formula

Select cells randomly from a column with User Defined Function (UDF)

Select cells randomly from a range with Kutools for Excel

How to select cells randomly in Excel? (2) Select cells randomly from a column with formula

As the following screenshot shows, you have a range of data from A1 to A15, the Rand and Index formula can help you display the random cells in a new column. Please do as follows:

How to select cells randomly in Excel? (3)

1. In the adjacent cell such as B1, enter the formula =RAND(), and press the Enter key, then copy the formula to the cell B15. And the random values will be filled with the cells. See screenshot:
How to select cells randomly in Excel? (4)

2. Then in the next cell over, in this case cell C1, enter the formula =INDEX($A$1:$A$15,RANK(B1,$B$1:$B$15)).
How to select cells randomly in Excel? (5)

3. Then press Enter key, and select the cell C1, drag the fill handle to cover as many cells as desired selections. And random 5 cells of range A1:A15 have been displayed in the column C. See screenshot:
How to select cells randomly in Excel? (6)

Quickly Sort or select cells/Rows/Columns randomly from a selection in Excel

Kutools for Excel's Sort Range Randomly can quickly sort or select data randomly by cells or columns or rows. Click for full-featured 30 days free trial!
How to select cells randomly in Excel? (7)
How to select cells randomly in Excel? (8)
Kutools for Excel: with more than 300 handy Excel add-ins, free to try with no limitation in 30 days.

How to select cells randomly in Excel? (9) Select cells randomly from a column with User Defined Function (UDF)

The following VBA code also can help you to display random cells that you need.

1. Click Developer > Visual Basic, a new Microsoft Visual Basic for applications window will be displayed, click Insert > Module, and input the following function into the Module:

Function RandomSelection(aRng As Range)'Update20131113Dim index As IntegerRandomizeindex = Int(aRng.Count * Rnd + 1)RandomSelection = aRng.Cells(index).ValueEnd Function

2. Then close the module window, and enter this function =RandomSelection($A$1:$A$15) in the cell B1. See screenshot:
How to select cells randomly in Excel? (10)

3. Press Enter key, and a random value of A1:A15 has been displayed in column B. And then drag the fill handle to cover as many cells as desired selections.How to select cells randomly in Excel? (11)

The above two methods can display the random cell values in a new column, and they are only applied for a single column range, not work for a range of cells. Kutools for Excel's Sort Range Randomly tool can help you select cells randomly in an original range conveniently.

How to select cells randomly in Excel? (12) Select cells randomly from a range with Kutools for Excel

Kutools for Excel, with more than 300 handy functions, makes your jobs more easier.

Free Downloadfree full-featured in 30-day

After free installing Kutools for Excel, please do as below:

1. Select the range that you want to use.

2. Apply the utility by clicking Kutools > Range > Sort / Select Range Randomly, see screenshot:
How to select cells randomly in Excel? (13)

3. In the Sort / Select Range Randomly dialog box, click Select button, and enter the number of the cells that you want to select, then check the Select Type you need. Then click OK or Apply. See screenshot:

Select random 10 cells from the selected range
How to select cells randomly in Excel? (14)

Select random 5 rows from the selected range
How to select cells randomly in Excel? (15)

Select random 4 columns from selected range
How to select cells randomly in Excel? (16)

Advanced to select random cells, Sort Range Randomly of Kutools for Excel can sort data randomly in whole range, in each rows, in each columns and so on.
How to select cells randomly in Excel? (17)

How to select cells randomly in Excel? (18) randomly select or sort data in a range

Easily Insert Random Data without duplicates in a range of cells

If you want to insert random and no duplicate integer numbers, dates, times or strings, even custom lists into a range of cells, the forumula maybe hard to remember. But Kutools for Excel's Inser Random Data can quickly handle these jobs as easily as possible. Click for full features 30 days free trial!
How to select cells randomly in Excel? (19)
Kutools for Excel: with more than 300 handy Excel add-ins, free to try with no limitation in 30 days.

Related Article:

Randomly sort cells in a column or range

Best Office Productivity Tools

🤖Kutools AI Aide: Revolutionize data analysis based on: Intelligent Execution |Generate Code |Create Custom Formulas|Analyze Data and Generate Charts |Invoke Kutools Functions…
Popular Features: Find, Highlight or Identify Duplicates |Delete Blank Rows |Combine Columns or Cells without Losing Data | Round without Formula...
Super Lookup: Multiple Criteria VLookup| Multiple Value VLookup| VLookup Across Multiple Sheets | Fuzzy Lookup....
Advanced Drop-down List: Quickly Create Drop Down List |Dependent Drop Down List |Multi-select Drop Down List....
Column Manager: Add a Specific Number of Columns | Move Columns | Toggle Visibility Status of Hidden Columns | ...
Featured Features: Grid Focus |Design View | Big Formula Bar ||Resource Library (Auto Text)|Date Picker|Combine Worksheets |Encrypt/Decrypt Cells |Send Emails by List |Super Filter | Special Filter (filter bold/italic/strikethrough...)...
Top 15 Toolsets: 12 Text Tools (Add Text, Remove Characters, ...) | 50+ Chart Types (Gantt Chart, ...) | 40+ Practical Formulas (Calculate age based on birthday, ...) | 19 Insertion Tools (Insert QR Code, Insert Picture from Path, ...) | 12 Conversion Tools (Numbers to Words, Currency Conversion, ...) | (Advanced Combine Rows, Split Cells, ...) | ... and more

Supercharge Your Excel Skills with Kutools for Excel, and Experience Efficiency Like Never Before. Kutools for Excel Offers Over 300 Advanced Features to Boost Productivity and Save Time. Click Here to Get The Feature You Need The Most...

How to select cells randomly in Excel? (20)

Read More... Free Download...

Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!

Read More... Free Download...

How to select cells randomly in Excel? (2024)
Top Articles
Latest Posts
Article information

Author: Gov. Deandrea McKenzie

Last Updated:

Views: 5855

Rating: 4.6 / 5 (46 voted)

Reviews: 85% of readers found this page helpful

Author information

Name: Gov. Deandrea McKenzie

Birthday: 2001-01-17

Address: Suite 769 2454 Marsha Coves, Debbieton, MS 95002

Phone: +813077629322

Job: Real-Estate Executive

Hobby: Archery, Metal detecting, Kitesurfing, Genealogy, Kitesurfing, Calligraphy, Roller skating

Introduction: My name is Gov. Deandrea McKenzie, I am a spotless, clean, glamorous, sparkling, adventurous, nice, brainy person who loves writing and wants to share my knowledge and understanding with you.