Function Problems

Fix Duplicate Golfer Names in Excel Random Team and Tee-Off Formulas

Steven ParkerSteven Parker Nov 12, 2026 868 views

Question details

The user needs to stop duplicate golfer names from appearing when formulas randomly create teams or a tee-off order.

Fix Duplicate Golfer Names in Excel Random Team and Tee-Off Formulas
Product
Microsoft Excel spreadsheet formulas
Device & OS
not provided
Scenario
A golf roster is randomized and then divided into teams or tee-off groups.
Observed behavior
The generated team or order-of-play results contain repeated golfer names, which can happen when the source list has duplicates or separate random formulas are used.
Before you start

Place the complete golfer roster in one column and remove blank rows from the active list. If golfers can share the same name, add a separate unique player ID so each roster entry can be identified reliably.

Solution 1Recommended

Create one unique randomized golfer list before assigning teams

Use this method when duplicate names appear because team or tee-off formulas randomize players separately.

Build one randomized sequence from the cleaned roster, then use that same sequence as the only source for every team or tee-off assignment. Do not use separate RAND or RANDBETWEEN lookups for each output row, because those formulas can select the same player more than once.

1
Check the source roster for repeated entries

In Excel, select the golfer-name column, then choose Data > Remove Duplicates. If identical names represent different people, keep both rows but add a unique ID in an adjacent column, such as Player 01, Player 02, and so on.

2
Generate a unique randomized list

With golfer names in A2:A100, enter this formula in an empty cell: =LET(players,FILTER(A2:A100,A2:A100<>""),SORTBY(UNIQUE(players),RANDARRAY(ROWS(UNIQUE(players))))) . It removes repeated names, ignores blanks, and produces one randomized list.

3
Assign teams from the randomized results

If the randomized list begins in D2 and you need four teams, enter =MOD(ROW()-ROW($D$2),4)+1 in E2 and fill down. Use column E as the team number beside each golfer in column D.

4
Create tee-off groups from the same list

For groups of four starting at D2, enter =INT((ROW()-ROW($D$2))/4)+1 in F2 and fill down. This assigns golfers 1-4 to group 1, golfers 5-8 to group 2, and continues without selecting a golfer twice.

Create one unique randomized golfer list before assigning teams
Random results recalculate: RANDARRAY recalculates when the workbook calculates. When you are satisfied with the draw, copy the randomized list and use Paste Special > Values to keep that order.
Randomize golf teams without duplicate entries

Create a Duplicate-Free Golf Team Draw in WPS Spreadsheet

WPS Spreadsheet lets you clean a golfer roster, generate one random value for each player, sort the complete list, and assign teams or tee-off groups from that single sequence. This avoids repeated selections while keeping player details aligned.

  1. 1. Clean the player list: In WPS Spreadsheet, select the golfer-name column and use Data > Remove Duplicates. Add a Player ID column if two golfers have the same displayed name.
  2. 2. Add a random sort value: Enter =RAND() in a helper column beside the first golfer, then drag the fill handle to apply it to every player row.
  3. 3. Sort the full roster once: Select all roster columns, choose Data > Sort, and sort the RAND helper column from smallest to largest.
  4. 4. Assign teams from the sorted roster: In a Team column, enter =MOD(ROW()-ROW($A$2),4)+1 for four teams, adjusting $A$2 to your first player row, then fill the formula down.
  5. 5. Freeze the final draw: Copy the sorted roster and use Paste Special > Values when you want to preserve the current random team or tee-off order.
Use Data > Remove Duplicates to clean the golfer roster before drawing teams.Randomize each golfer once with a RAND helper column, then sort the full table together.Assign balanced teams or tee-off groups with straightforward MOD and INT formulas.Open, edit, and save Microsoft Excel .xlsx workbooks with format compatibility.
microsoft office alternative - wps office

Frequently Asked Questions

Why do golfers repeat when I use RANDBETWEEN to create teams?

RANDBETWEEN independently returns a number for each formula cell, so more than one cell can return the same player number. Randomize the roster once, then assign teams based on that ordered list.

How can I keep two golfers with the same name from being removed?

Add a unique identifier, such as a membership number or Player ID, beside each name. Remove duplicates using the ID and name combination rather than the name column alone.

How do I make the random tee-off order stop changing?

After generating the desired order, select the randomized results, copy them, and use Paste Special > Values. The displayed names will replace the recalculating formulas.

Can I assign golfers evenly to four teams after randomizing them?

Yes. In the row beside the first randomized golfer, use =MOD(ROW()-ROW(first_player_cell),4)+1 and fill down. The team numbers repeat 1 through 4 in sequence.

Why should I sort the entire golfer table instead of only the name column?

Sorting only names can detach player IDs, handicaps, or contact details from the correct golfer. Select every related roster column before using Data > Sort.