To randomly select items from a list in Excel without repeating any, you can use a combination of the RAND, SORT, and INDEX functions. This method ensures each item is chosen only once, ideal for drawing names, assigning tasks, or creating unbiased samples. No add-ins or macros are required—just built-in Excel functions.

What You'll Need

  • A list of items in a single column (e.g., A2:A20)
  • Excel 2019 or later, or Microsoft 365 (for dynamic array support)
  • Basic familiarity with Excel formulas and cell references

Step-by-Step

  1. Open your Excel workbook and ensure your list is in a single column without blank cells in between. For example, place your items in cells A2 through A15.
  2. In the cell directly to the right of your first item (e.g., B2), enter the formula: =RAND(). This generates a random decimal between 0 and 1.
  3. Drag the fill handle (small square at the bottom-right corner of the selected cell) down to copy the =RAND() formula to every row that has an item in column A. This creates a random number next to each item.
  4. Select the range containing both your list and the random numbers (e.g., A2:B15).
  5. Go to the Data tab on the ribbon, click Sort, then choose to sort by the column with the random numbers (e.g., Column B). Select Smallest to Largest and click OK. This shuffles your list based on random values.
  6. Now, decide how many random items you need. If you want 5, the first 5 items in the shuffled column A are your selections. Copy them to another location if needed.
  7. To make this process dynamic and reusable, use the formula =INDEX(SORTBY(A2:A15,RANDARRAY(ROWS(A2:A15))),SEQUENCE(5)) in a new cell. This formula automatically randomizes the list and returns the first 5 unique items without repetition. Press Enter if using Excel 365 or 2021.

Common Mistakes

  • Using =RAND() but forgetting to copy it to all rows—this leaves some items unshuffled and causes bias.
  • Sorting by the wrong column. If you sort by your original list instead of the random number column, the order won’t change.
  • Assuming =RAND() stays fixed. This function recalculates every time the sheet changes, so if you need to preserve results, copy the random numbers and paste them as values before sorting.
  • Trying to use =RANDBETWEEN() for selection—it generates integers, not a stable sort key, and can repeat values.
  • Not checking for blank cells in the source list, which can cause the SORTBY or INDEX formulas to return errors.

Tips

  • Always copy and paste values of the random numbers before sorting if you plan to reuse the same shuffled list later—otherwise, the order changes every time you edit any cell.
  • Use named ranges for your list (e.g., name A2:A15 as "Names"). Then use =INDEX(SORTBY(NamedRange,RANDARRAY(ROWS(NamedRange))),SEQUENCE(5)) to make formulas easier to read and maintain.
  • If you need to select more items than exist in your list, the formula will return an error. Always ensure your SEQUENCE number doesn’t exceed the total items in the source.
  • For older Excel versions (pre-2019), stick with the manual RAND + Sort method. The dynamic array method won’t work.
  • Label your output clearly (e.g., "Random Selection #1") so you know which items were chosen when you revisit the sheet.

Troubleshooting

  • If you see #SPILL!, it means Excel can’t place the formula’s output because cells below are occupied. Clear the cells below the formula or move it to a blank area.
  • If the formula returns #VALUE! or #REF!, check that your list range contains only text or numbers—not formulas that return errors. Remove any #N/A or #DIV/0! values from the source.
  • If the list isn’t shuffling, verify that the RAND column has values. If all are 0, your cells may be formatted as text. Select the RAND column, press Ctrl+1, choose Number format, and set decimal places to 6.
  • For SORTBY not working, confirm you’re using Excel 365 or Excel 2021. Older versions don’t support dynamic arrays. Use the manual Sort method instead.
  • If the selection changes unexpectedly, it’s because RAND recalculates. To freeze results, copy the shuffled list, then use Paste Special > Values to paste over the original.

Frequently Asked Questions

Can I use this method to pick one random item from a list?

Yes. Use =INDEX(SORTBY(A2:A20,RANDARRAY(ROWS(A2:A20))),1) to return the first item after randomization. This gives you one unique selection every time the sheet recalculates.

Does this work with duplicate items in the list?

Yes. If your list has duplicates, they can both appear in the output. The method prevents repetition of the same row, not the same value. To remove duplicates first, use Data > Remove Duplicates on your source list.

Why does the result change every time I open the file?

Because RAND recalculates automatically. To keep a fixed set, copy the results and paste them as values. Alternatively, turn off automatic calculation under Formulas > Calculation Options > Manual.

Can I select random items from multiple columns?

Yes. Include all columns in your sorting range. For example, if your list has names in column A and departments in column B, select A2:B20, then sort by column C (the RAND column). The entire rows stay intact.

Is there a limit to how many items I can randomize?

Excel can handle up to 1,048,576 rows. For practical purposes, the limit is your computer’s memory and how long the calculation takes. Lists over 10,000 items may slow down recalculation.

What if I need to randomize without adding a helper column?

In Excel 365 or 2021, you don’t need a helper column. The formula =INDEX(SORTBY(A2:A15,RANDARRAY(ROWS(A2:A15))),SEQUENCE(5)) combines everything into one step. No extra columns required.