How to randomly fill values from a list of data in Excel?
For example, you have a list of names, and now you need to randomly select several names and fill into given cells, how to deal with it? Here I will introduce a couple of methods to randomly fill values from a list of data in Excel.
- Randomly fill values from a list of data with functions
- Randomly fill values from a list of data with Kutools for Excel
Randomly fill values from a list of data with functions
To randomly fill values from a given list of data in Excel, we can apply the RANDBETWEEN function and VLOOKUP function to get it done as follows:
Step 1: Right click the column of given list, and select Insert from right-clicking menu.


Step 2: In the inserted column, type NO. as column heading, and then type sequence numbers into following cells as above screenshot:
Step 3: Fill specified cells randomly from the given list:
(1) In a blank cell enter the formula =RANDBETWEEN(1,15), and drag the fill handle to the range you need.
(2) In the cell where you will fill name randomly from the given list, enter the formula =VLOOKUP(C2,$A$1:$B$16,2,FALSE), and drag the fill handle to the range you need.
Notes:
(1) In the formula =RANDBETWEEN(1,15), 1 is the smallest sequence number, and 15 is the biggest one.
(2) In the formula =VLOOKUP(C2,$A$1:$B$16,2,FALSE), C2 is the random sequence number you got just now, $A$1:$B$16 is the range of given list and inserted sequence numbers, 2 means the second column in the range of $A$1:$B$16.
![]() |
Formula is too complicated to remember? Save the formula as an Auto Text entry for reusing with only one click in future! Read more… Free trial |
The RANDBETWEEN function and VLOOKUP function can easily help you to randomly fill names from the given list in Excel. However, this method leaves two problems:
- The random names change once current worksheet refreshes, such as enter a new formula in the worksheet, or just double-click into a cell and then leave, etc.
- Duplicate names are filled in the specified cells occasionally.
Randomly fill values from a list of data with Kutools for Excel
To randomly fill names from the given list without duplicates, and keep all filled names static, you can try Kutools for Excel’s Insert Random Data utility to get it done with ease.
Kutools for Excel - Packed with over 300 essential tools for Excel. Enjoy a full-featured 30-day FREE trial with no credit card required! Download now!
Step 1: Click Kutools > Insert > Insert Random Data.
Step 2: In the opening Insert Random Data dialog box, go to the Custom list tab, click the Add button; then in the opening Create Sequence dialog box, click the button; in the new dialog box, specify the range of given name list; next click OK > Ok.
Step 3: Now the given name list is added as a custom list in the Insert Random Data dialog box. Select the range you will randomly fill names from the given list, click the Ok button or Apply button.
Note: To fill names randomly from the given list without duplicates, please check the Unique values option in the Insert Random Data dialog box. See above screen shot.
Demo: randomly fill values from a list of data in Excel
Related articles:
Best Office Productivity Tools
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...
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!
