Random Team Picker

How to Make Teams in Excel (Step-by-Step, With Formulas)

To make teams in Excel, list your names in a column, add a random number next to each with `=RAND()`, sort by that column, and then split the shuffled list into as many teams as you want. It works, and this guide walks you through it step by step. But if you'd rather skip the formulas and re-sorting, a free random team picker does the whole thing in one click and never breaks when someone edits a cell.

Short on time? Open the free team picker, paste your names, choose your number of teams, and get fair, random groups instantly, no formulas, no sorting, no spreadsheet at all.

An Excel sheet with a name column, a RAND helper column, and names sorted into teams

👥 Random Team Picker: split your list into teams

The sample names are from this page. Replace them with yours, one per line or separated by commas.

2

Open in the full team picker → Balance by skill, pick captains, keep friends apart, then print or share.

The Quick Version: Make Teams in Excel in 4 Steps

If you just want the recipe, here it is. Details and screenshots-in-words follow below.

  1. Put names in column A, one per row (say A2 through A13 for 12 people).
  2. In column B, add `=RAND()` next to each name and copy it down.
  3. Sort by column B (smallest to largest). This shuffles your names randomly.
  4. Assign teams by dealing the sorted names out, either by eye or with a quick formula.

That's the core method. Now let's make each step foolproof.

Step 1: List Your Names

Open a blank sheet. In cell A1 type a header like "Name." Then list every person down column A, one name per cell. Keep it clean, no blank rows in the middle, no duplicate spellings.

If you have two people with the same name, add a last initial, "Sam K" and "Sam P," so you and the sorter can tell them apart later.

Step 2: Add a Random Number With RAND()

In cell B1, type a header like "Random." In B2, type:

```

=RAND()

```

Press Enter. Excel drops a random decimal between 0 and 1 into the cell. Now grab the little square at the bottom-right corner of B2 and drag it down to the last name, or double-click it to auto-fill. Every name now has its own random number.

A quirk to know: `RAND()` is "volatile," which means it recalculates every time the sheet changes. Your numbers will jump around whenever you type anything. That's fine for the sort, but it's why the next step includes a "freeze" trick.

Freeze the random numbers (optional but smart)

If you want your shuffle to stay put:

  1. Select column B (all your RAND values).
  2. Copy them (`Ctrl+C`).
  3. Right-click, choose Paste Special, and pick Values.

Now the numbers are fixed and won't jump when you sort. Skip this and the sort still works, the values just keep changing in the background.

Step 3: Sort to Shuffle

Select both columns (A and B) including your headers. Then:

  1. Go to the Data tab.
  2. Click Sort.
  3. Sort by your "Random" column, smallest to largest (or largest to smallest, doesn't matter).

Your names are now in random order. Because each name had a unique random number, the order is genuinely scrambled, and every name appears exactly once. No repeats, no left-out names.

Step 4: Assign the Teams

Now split the shuffled list. Two easy ways:

The eyeball method

Decide how many teams you want. For 12 people into 3 teams, that's 4 per team. Just read down the sorted list: the first 4 names are Team 1, the next 4 are Team 2, the last 4 are Team 3. Type the team name in column C next to each. Done.

The formula method

If you want Excel to label the teams automatically, put this in cell C2 (assuming names start in row 2) and copy it down:

```

="Team " & (MOD(ROW()-2, 3) + 1)

```

Change the `3` to however many teams you want. This deals names out in a rotation, Team 1, Team 2, Team 3, Team 1, and so on, which keeps team sizes as even as possible even when the numbers don't divide cleanly.

To group all of one team together, sort again by column C, or use a filter to view one team at a time.

Handling Uneven Numbers

What if your headcount doesn't divide evenly? Say 14 people into 4 teams. That's two teams of 4 and two teams of 3.

The rotation formula above handles this automatically, it just gives the first couple of teams one extra person. If you're doing it by eye, deal one name to each team in turn and the leftovers naturally land on the first teams. Either way, no team ends up wildly bigger than the others. For more on this, see how to randomly split into teams.

Excel vs. a Free Team Picker

Excel gets the job done, but it has friction. Here's an honest comparison so you can pick the right tool for you.

FactorExcel (RAND + sort)Free team picker
Setup timeA few minutes of formulas and sortingPaste and click
Re-shuffleRe-sort or recalc, then re-checkOne button
Uneven teamsHandled, but you set it upAutomatic
Breaks easilyYes, an edit re-randomizes RANDNo
Needs softwareYes, Excel installedNo, works in any browser
Best forYou already live in a spreadsheetFast, repeatable, no fuss

If you keep your roster in a spreadsheet anyway, Excel is convenient. If you just want fair teams fast, the team picker is quicker and won't scramble itself when you tab away. Our full team generator vs. manual comparison digs deeper.

Common Excel Team-Making Problems (and Fixes)

A few snags trip people up. Here's how to solve them.

When to Skip the Spreadsheet Entirely

Excel shines when your data already lives there and you need it alongside other columns. But reach for a free group randomizer instead when:

There's no shame in picking the simpler tool. The goal is fair teams, not spreadsheet points.

Does This Work in Google Sheets Too?

Yes, almost identically. Google Sheets uses the same `=RAND()` function, the same sort menu (Data > Sort range), and the same `MOD` formula for labeling teams. A couple of small differences to know:

If you already work in Google Sheets, there's no reason to switch to Excel just for this. The method carries over one-to-one.

A Faster Real-World Routine

Here's how this actually plays out when you need teams in a hurry, and why many people end up reaching for the picker instead.

Imagine it's five minutes before a game night and you've got 16 names to split into 4 teams. With Excel, you'd open the file, type or paste the names, add the RAND column, drag it down, freeze the values, sort, then apply the MOD formula and sort again. It works, but that's a lot of clicks under time pressure, and one stray edit re-randomizes everything.

With the team picker, you paste the 16 names, set "4 teams," and click once. Done, before Excel finished loading. That speed gap is why the spreadsheet approach shines for planned, data-heavy work, while a dedicated picker wins for quick, live, in-the-moment splits. Keep both in your back pocket and use whichever fits the moment. For the fuller trade-off, see our team generator vs. manual comparison.

The One-Formula Method (Excel 365)

If you have Excel 365, you can skip the helper column and the Sort dialog entirely. Newer "dynamic array" functions shuffle a whole list with a single formula, and the result spills down the column on its own.

With 12 names in A2:A13, click an empty cell such as D2 and type:

=SORTBY(A2:A13, RANDARRAY(ROWS(A2:A13)))

Here is what each piece does:

To label the teams next to the shuffled list, put this in E2 (change the 3 to your team count):

="Team "&MOD(SEQUENCE(ROWS(A2:A13))-1, 3)+1

SEQUENCE counts 1, 2, 3 and so on down the list, and MOD turns that count into a repeating 1, 2, 3, 1, 2, 3 pattern. It is the same rotation idea as the formula in Step 4, just written as one spilling formula.

Lay the teams out side by side

Want each team in its own column instead of one long list? Excel 365 has a function for that too:

=WRAPROWS(SORTBY(A2:A13, RANDARRAY(ROWS(A2:A13))), 3, "")

WRAPROWS takes the shuffled names and wraps them into rows 3 wide, which gives you 3 columns. Each column is a team. The last argument, the empty quotes, fills any gaps with a blank instead of an #N/A error, so 14 names into 4 teams just leaves two blank cells at the bottom.

One warning: RANDARRAY is volatile, just like RAND. Every edit reshuffles. When you like a draw, copy the spilled cells and use Paste Special > Values somewhere else to keep it.

Make Teams Without Sorting: RANK and INDEX (Any Version)

Maybe you're on an older copy of Excel, or your roster has other columns (phone numbers, grades, shirt sizes) that you don't want shuffled around. This method leaves your list in its original order and still assigns random teams.

  1. Column B: =RAND() next to each name, as before.
  2. Column C: in C2 type =RANK(B2, $B$2:$B$13) and copy it down. Each person gets a unique random position from 1 to 12.
  3. Column D: in D2 type =MOD(C2-1, 3)+1 and copy it down. That turns each position into a team number from 1 to 3.

The dollar signs matter. They lock the range so it doesn't slide down as you copy the formula.

Fixed team size instead of fixed team count

If you'd rather say "teams of 4," use ROUNDUP in column D instead: =ROUNDUP(C2/4, 0). Positions 1 to 4 become Team 1, 5 to 8 become Team 2, and so on. Just know that leftovers form a small last team. With 14 people you'd get teams of 4, 4, 4 and 2, so the MOD version is usually kinder for uneven numbers.

Build a team grid with INDEX and MATCH

To see the teams laid out as columns in any version of Excel, pick a starting cell, say G2, and enter:

=IFERROR(INDEX($A$2:$A$13, MATCH((ROW()-ROW($G$2))*3 + COLUMN()-COLUMN($G$2)+1, $C$2:$C$13, 0)), "")

Copy it across three columns (G to I) and down four rows. The math inside MATCH works out which random position belongs in each cell, and INDEX fetches that name. Column G holds Team 1, H holds Team 2, I holds Team 3. IFERROR shows a blank where a team runs out of people. Change both 3s if you have a different number of teams.

Balance Teams by Skill With a Snake Formula

Pure random is fair, but sometimes you want evenly matched sides. A snake order (1, 2, 3, 3, 2, 1) gives every team a mix of stronger and newer players. Excel can do it with one formula.

  1. Put a skill rating in column B (1 to 5 works fine).
  2. Put =RAND() in column C as a tie-breaker so players with the same rating land in random order.
  3. Sort by column B largest to smallest, then by column C.
  4. Type your team count in F1, then put this in D2 and copy it down:

=IF(MOD(ROW()-2, 2*$F$1)<$F$1, MOD(ROW()-2, 2*$F$1)+1, 2*$F$1-MOD(ROW()-2, 2*$F$1))

With 3 teams, the first six rows come out 1, 2, 3, 3, 2, 1, and the pattern repeats from there. The top player goes to Team 1, but Team 1 also gets the sixth and seventh picks, so things even out. For more ways to even out skill, see how to make fair teams.

Excel Formulas and Their Google Sheets Equivalents

Not every function exists in every version. Use this table to check before you build.

JobExcel formulaWorks inGoogle Sheets
Random number per name=RAND()All versionsSame
Random position 1 to n=RANK(B2, $B$2:$B$13)All versionsSame
Team number by rotation=MOD(C2-1, 3)+1All versionsSame
Team number by size=ROUNDUP(C2/4, 0)All versionsSame
Shuffle in one formula=SORTBY(A2:A13, RANDARRAY(ROWS(A2:A13)))Excel 365 and Excel 2021=SORT(A2:A13, RANDARRAY(ROWS(A2:A13)), TRUE)
Spilling team labelsSEQUENCE with MODExcel 365 and Excel 2021Same, wrapped in ARRAYFORMULA( )
Teams in side-by-side columnsWRAPROWS(..., 3, "")Excel 365 and recent versions onlySame
List one team's members=FILTER(A2:A13, D2:D13=1)Excel 365 and Excel 2021Same

Google Sheets also has a no-formula shortcut: select your names, then choose Data > Randomize range. It shuffles the cells in place, and the result doesn't change on its own afterward. Add the MOD formula next to the shuffled list and your teams are done.

If any of this feels like more spreadsheet than you signed up for, the free team picker does the shuffle, the even split and the reshuffle without a single formula.

Frequently Asked Questions

How do I randomly split names into teams in Excel?

List names in column A, add `=RAND()` in column B and copy it down, then sort both columns by the random column. Your names shuffle into a random order. Split the sorted list into equal chunks, or use `="Team " & (MOD(ROW()-2, n) + 1)` to label teams automatically.

Why do my RAND numbers keep changing in Excel?

`RAND()` is volatile, so it recalculates every time the sheet changes. To lock the values, copy column B, then use Paste Special and choose Values. The numbers freeze and won't jump when you sort or edit other cells.

How do I make even teams when the number doesn't divide evenly?

Use the rotation formula `="Team " & (MOD(ROW()-2, n) + 1)`, replacing `n` with your team count. It deals names out one team at a time, so extras land on the first teams and no group ends up much bigger than the rest.

Is there an easier way than Excel to make teams?

Yes. A free team picker lets you paste names and split them into fair, random teams with one click, no formulas, no sorting, and no risk of the sheet re-randomizing when you edit it. It works in any browser with no sign-up.

Can I make teams in Excel on my phone?

You can with the Excel mobile app, but formulas and sorting are fiddly on a small screen. For quick team-making on a phone, a browser-based team picker is far easier, just paste and tap.

How do I keep the same person off the same team as last time?

Excel's RAND doesn't remember past results, so you'd track that manually in another column. If avoiding repeat pairings matters, a dedicated tool or a quick re-shuffle-and-check is simpler than building the logic in a spreadsheet.

How do I randomize a list in Excel without duplicates?

Avoid RANDBETWEEN, because it can return the same number twice. Instead, shuffle the list itself. In Excel 365 or Excel 2021, use =SORTBY(A2:A13, RANDARRAY(ROWS(A2:A13))). In older versions, add =RAND() next to each name and sort by that column. Either way every name appears exactly once, just in a new random order.

How do I randomly assign people to groups in Google Sheets?

Select your list of names and choose Data > Randomize range to shuffle them in place. Then, next to the first name, type ="Group "&(MOD(ROW()-2, 3)+1) and copy it down, changing 3 to your number of groups. Because Randomize range doesn't recalculate on its own, your groups stay put until you shuffle again.

Can Excel make teams balanced by skill level?

Yes. Give each player a skill rating, sort from highest to lowest, then assign teams in a snake order (1, 2, 3, 3, 2, 1) with a MOD-based formula. Each team gets a mix of strong and developing players. Add a RAND column as a tie-breaker so players with the same rating are placed in random order.

Ready to Skip the Formulas?

Excel's RAND-and-sort trick works, and now you know it cold. But if you'd rather not babysit a spreadsheet, open the free team picker, paste your names, and get fair, random, evenly-sized teams in one click. It's free, there's no sign-up, and re-shuffling takes a single tap. Try it and keep the spreadsheet for the stuff spreadsheets are actually good at.