sodcalculator

10 Tech How-To

Randomize a List in Google Sheets: 3 Easy Ways

Guide 10-4916 · Updated · Step by step

Randomizing a list in Google Sheets is useful for drawing winners, shuffling names for a classroom, or reordering tasks to avoid bias. You can do it with a built-in function, a menu command, or a quick formula—no add-ons needed. This guide shows you three reliable methods and how to fix common issues.

What You’ll Need

  • A Google Sheets document with your list in a single column (e.g., A1:A20).
  • Basic familiarity with entering formulas (if using the formula methods).
  • No special permissions or extensions required.

Step-by-Step

Method 1: Using the RAND Function (Most Common)

  1. Open your Google Sheet and ensure your list is in one column, for example, A2:A10 (with a header in A1).
  2. Insert a helper column next to your list. Click on cell B2 (or the first data row).
  3. Type the formula =RAND() and press Enter. This generates a random decimal between 0 and 1.
  4. Copy the formula down to cover all rows in your list. Double-click the small blue square at the bottom-right of cell B2 to autofill, or drag it down.
  5. Select both columns (A and B) including the header row.
  6. Click Data in the top menu, then Sort range.
  7. Check “Data has header row� if you have a header.
  8. Sort by column B (the random numbers) and choose A→Z or Z→A—either works because the numbers are random.
  9. Click Sort. Your list is now shuffled.
  10. Delete the helper column (column B) if you no longer need the random numbers.

Method 2: Using the SORT Function (No Helper Column)

  1. Select a blank cell where you want the randomized list to appear, e.g., C2.
  2. Type the formula: =SORT(A2:A10, RANDARRAY(ROWS(A2:A10)), TRUE) and press Enter.
  3. Explanation: RANDARRAY(ROWS(A2:A10)) creates a column of random numbers matching the list length. SORT sorts your list by that random column.
  4. Press F9 (or the Refresh button) to generate a new shuffle each time you recalculate.
  5. Copy the result and paste as values if you want to freeze the order (use Paste Special → Values).

Method 3: Using the “Randomize Range� Menu (For a Quick Shuffle)

  1. Select the range containing your list (e.g., A2:A10).
  2. Right-click the selection and choose View more cell actions → Randomize range. (Alternatively, go to Extensions → Power Tools if you have it, but the built-in option is under the right-click menu in most current versions.)
  3. Confirm the dialog if prompted. Your selected cells will be shuffled in place.

Common Mistakes

  • Sorting only the data column without the random numbers—this breaks the pairing, so the list order no longer matches the random values.
  • Forgetting to recalculate—RAND() only updates when the sheet recalculates (on edit or F9). If you don’t refresh, you may see the same order repeatedly.
  • Using RAND() with a filter active—sorting a filtered range can hide rows and give an incomplete shuffle.
  • Including the header in the random range—if you sort the header along with data, it gets mixed in.

Tips

  • Freeze the order: after sorting, copy the randomized list and paste as values (Edit → Paste special → Values only) to keep it fixed.
  • Use a named range for your list to make formulas easier to read, e.g., =SORT(MyList, RANDARRAY(ROWS(MyList)), TRUE).
  • For a truly random selection without replacement, combine randomizing with the INDEX function to pick the first N items.
  • Recalculate with a shortcut: press Ctrl+R (Windows) or Cmd+R (Mac) to refresh all formulas.

Troubleshooting

Issue: The list doesn’t change after sorting. This usually happens because RAND() hasn’t recalculated. Press F9 or make a small edit anywhere to trigger a recalculation.

Issue: The SORT formula returns an error like “#VALUE!� Check that the range in RANDARRAY matches the number of rows in your list. If your list is A2:A10, RANDARRAY(ROWS(A2:A10)) is correct. Also ensure you’re not mixing whole columns (like A:A) with a specific range.

Issue: The “Randomize range� option is missing. This feature may not be available in some older versions or if the sheet is protected. Try the RAND() method instead.

Issue: Sorting affects other columns unintentionally. If you select only two columns but the sheet has more data, sorting will only reorder those columns, breaking the row alignment. Always select all columns that belong together.

Issue: The random numbers keep changing every time you edit. That’s normal behavior. To stop it, delete the helper column or paste the sorted list as values.

Frequently Asked Questions

Can I randomize a list without a helper column?

Yes, use the SORT function with RANDARRAY as shown in Method 2. It creates random numbers on the fly without extra columns.

How do I prevent the random order from changing?

After sorting, copy the shuffled list and paste it as values (Edit → Paste special → Values only). This removes the formulas, so the order stays fixed.

Does RAND() produce a true random number?

It’s a pseudo-random number generated by the spreadsheet, which is sufficient for most everyday uses like shuffling lists. For scientific or cryptographic purposes, you’d need a dedicated tool.

Can I randomize multiple columns at once?

Yes, include all columns in the sort range. For example, if you have names in A and scores in B, select both columns and sort by the random helper column (C). The rows will shuffle together.

What if my list has blank cells?

Blank cells will be treated as empty values. They’ll be shuffled along with the rest. If you want to exclude them, filter out blanks first or use a formula like =SORT(FILTER(A2:A, A2:A<>""), RANDARRAY(COUNTA(A2:A)), TRUE).

Is there a way to randomize only a selected portion of the list?

Yes, just select the specific range you want to shuffle (e.g., A2:A5). The RAND() method will only sort that range, leaving the rest untouched.

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Tech How-To bed →