Guide

Secret Santa Spreadsheet: Draw Names in Excel or Google Sheets

A split scene: a stressed man buried in a messy spreadsheet and tangled red string, and a relaxed woman under a blanket getting glowing envelopes on her phone.

In short

To run a Secret Santa draw in a spreadsheet, add a column of RAND() numbers, sort the names by it, and have each person buy for the name one row down, with the last name wrapping around to the first. The steps are the same in Excel and Google Sheets, and nobody draws themselves or a swapped pair. The catch is that whoever builds the sheet sees every match.

You have fourteen names in a column, a shuffle formula you copied from a forum thread, and a Secret Santa spreadsheet that looked perfect a minute ago. Then you fix a typo in cell A9 and every match on the screen changes. Which draw was the real one?

The culprit is a shuffle built into one live formula (SORTBY with RANDARRAY in Excel, SORT with RANDARRAY in Google Sheets): it recalculates on every edit, so the order never settles. The method below avoids that by shuffling once with a helper column and a sort, then freezing the pairs as plain values. It also covers couples who shouldn't draw each other and how to send matches privately, then looks at the other DIY draws, AI chatbots included, and when an app is the better pick.

How do you draw Secret Santa names in Excel or Google Sheets?

Shuffle the names with a column of random numbers, then make each person buy for the name one row below theirs, with the last name wrapping around to the first. It works the same in Excel and Google Sheets, apart from a few menu names in the table below.

Picture the shuffled list as a circle, each person buying for the next one around. Nobody draws themselves, because the next person is someone else. Nobody lands in a swapped pair (A draws B and B draws A), because that would take a circle of two. You need at least 3 people.

The steps assume columns A to F and 20 people in rows 2 to 21 (adjust to your list):

  • 1
    Set up the table. In row 1, type the headers Name, Email, Keep apart, Shuffle, Gives to and Check, then list one person per row, yourself included if you're playing. Keep every name unique (add an initial if two people share a first name, like David K. and David T.), or a match can read like a self-draw.
  • 2
    Add random numbers. In D2, type =RAND() and fill it down to D21. RAND returns a random decimal between 0 and 1 and recalculates whenever the sheet changes. Skip RANDBETWEEN, which can repeat a number.
  • 3
    Sort by the shuffle. Select A1:D21, not columns E and F, and sort by Shuffle from smallest to largest. Never sort one column alone, or names drift away from their emails.
  • 4
    Point each person at the name below. In E2, type =A3 and fill it down to E20. In E21, type =A2 to close the circle.
  • 5
    Check the pairs against your rules (next section). If anything conflicts, repeat step 3 for a new order.
  • 6
    Freeze the result. Copy E2:E21 and paste it back over itself as values only. Then clear the Shuffle column.
  • 7
    Send each match privately, as described further down.

Menu paths for the steps that differ:

ActionExcelGoogle Sheets
Open the sort (step 3)Data > SortData > Sort range > Advanced range sorting options
Sort settingsMy data has headers, Shuffle, Smallest to LargestData has header row, Shuffle, A to Z
Paste as values (step 6)Paste Special > ValuesEdit > Paste special > Values only

If Excel warns about data next to your selection in step 3, choose Continue with the current selection.

Step 6 turns the sheet from a calculation into a record. Until then, each Gives to cell follows row position: sort the table by name or insert a row and the matches change without warning, and delete a row and the cell above shows #REF!. Once the pairs are plain values, each row is a fixed record of what you sent, as long as you sort whole rows. RAND() keeps recalculating in the Shuffle column, but nothing re-sorts the rows, so editing a name can't reshuffle anyone.

A six-person sheet after step 5 looks like this, minus the Email and Shuffle columns. Tom is last, so he gives to Ines, who is first. Marcus and Lena share a label because they live together, and this time the shuffle kept them apart.

NameKeep apartGives toCheck
InesMarcusOK
MarcusHome 1PriyaOK
PriyaLenaOK
LenaHome 1SamOK
SamTomOK
TomInesOK

How do you check for self-matches and couples who shouldn't draw each other?

With shuffle-and-shift, self-matches and swapped pairs can't happen as long as every name appears once. Rules like “partners can't draw each other” are different: the shuffle knows nothing about them, so you add a column that flags broken rules and sort again until it comes up clean.

Give people who shouldn't draw each other the same label in the Keep apart column: Home 1 for a couple, Home 2 for two roommates, Team A for a manager and a direct report. Leave everyone else blank, and keep the groups small, because everyone who shares a label is kept apart from everyone else with it.

In F2 type =IF(AND(C2<>"",C2=C3),"Conflict","OK") and fill it down to F20. It flags a person whose recipient shares their label, and C2<>"" stops two blank cells from counting as a match. In F21 use =IF(AND(C21<>"",C21=C2),"Conflict","OK") to check the wrap-around. A total such as =COUNTIF(F2:F21,"Conflict") in H1 shows 0 when you're clean and can freeze the pairs. Otherwise, sort again. (If your spreadsheet uses decimal commas, it probably wants semicolons between the parts of a formula.)

How often will you sort again? More than you'd guess: in a circle of n people, a given couple lands side by side with a 2-in-(n-1) chance, and each extra rule adds its own. These are calculated odds for a random shuffle, not measured results:

GroupRulesChance one shuffle breaks a rule
6 people1 coupleAbout 40%
10 people3 couplesAbout 52%
20 people3 couplesAbout 28%
20 people5 couplesAbout 42%

With ten people and three couples, expect to sort about twice. Nothing is broken; you just spin the wheel again.

One label per person can't express a one-way rule (Ben can't draw Alice, but Alice can draw Ben) or two exclusions for one person, such as a partner and last year's match. Those need a longer lookup formula or a check by eye, and every extra rule means more failed shuffles. Our guide to Secret Santa exclusions shows how many a group can take, and the HR guide to Secret Santa at work covers sensitive pairings like a manager and their report.

How do you send each person their match without the group seeing it?

Send every match in its own private message, never in the group chat and never as one message that lists everybody. Build the text inside the sheet first, then copy from there.

Once the pairs are frozen, add a Message column in G with a formula such as ="Hi "&A2&", you're buying a gift for "&E2&"." and fill it down, so each row holds the exact text for one person. Then deliver it:

  • By hand: paste each Message cell into its own email or direct message, and read the name twice before you send. A wrong recipient gives away one secret and leaves someone else with no match.
  • With a mail merge: Word can merge from an Excel list, and Google Sheets has add-ons that do the same. Test it on yourself first, and remember your Sent folder keeps a copy of every match.
  • On paper: for people without email, print each match on a slip, fold it and hand it out.

Here's a starting point for the email:

Match email

Subject: Your Secret Santa match

Hi Name,

You're buying a gift for Match. The budget is budget and we'll swap gifts on date at place.

Please keep this to yourself and don't forward it.

Check every email address before you send, because a typo means a missing match with any method. Our Secret Santa invitation templates have the announcement that collects addresses and the reminder to send about a week before. Keep the sheet until the exchange is over, as your backup for a lost email, then delete it and any shared copies, trash included.

Where does a spreadsheet draw leak or go wrong?

A spreadsheet draw is fair but not private, because the pairs sit in a form a person can read, in more places than you'd expect:

  • The organizer sees every pair, so you can't be surprised by your own Santa. A friend outside the exchange can build and send instead, but then that friend holds the full list.
  • The pairs leave copies: the sheet, its cloud version history, anyone you shared it with and your Sent folder.
  • Formulas follow position, not names, so a re-sort, an inserted row or a live shuffle formula changes the matches. Freeze them in step 6.
  • There's no private channel. Your Santa can't ask about sizes or tastes without a go-between, which usually means the organizer reads the question.

The first two come with the method: any draw a person runs leaves the pairs where a person can read them. The only real fix is a draw that never shows anyone the pairs, like a free Secret Santa generator that keeps them off the screen, even the organizer's.

An organizer at a kitchen table clutches his head in front of a laptop full of colored cells while his cat naps on a pile of torn paper slips

Can ChatGPT or another DIY method run a Secret Santa draw?

A chatbot can produce a list of pairs, but the person who typed in the names reads every match, and the list still needs checking. Next to a spreadsheet, these are the common DIY draws, judged by who can read the pairs and how the method slips:

DIY drawWho can see the pairsBiggest weak point
AI chatbotWhoever typed the names, plus that chat historyCan slip on self-draws and exclusions
Number game in a chatThe organizer, who receives every pickEverything passes through one phone
Online generator with a results pageThe organizerThe surprise is gone for whoever runs it

A chatbot feels like the easy way out, but it isn't a random number generator. It writes text that looks like a shuffle, and unless it runs code behind the scenes, nothing guarantees the order is random. It can slip with a self-draw, a forgotten name or an ignored exclusion, so check every pair against your rules. The names you paste also go to a third-party service and usually stay in your chat history, so leave email addresses out. It does help with building the sheet: ask it to explain a formula, then test the result on a six-name list.

In a number game, the organizer shuffles the names in secret, everyone messages a number, and each person gets the name in that slot, so the organizer reads every match. Some online generators email everyone but also give the organizer a results page, so “it sends emails” doesn't tell you who can see the pairs. Our guide to drawing names for Secret Santa has a checklist for judging any online tool, and Secret Santa on WhatsApp shows where each message belongs if your group lives in a chat.

Spreadsheet or app: which should you use?

Use an app when the organizer wants to play, when exclusions or private emails matter, and when the group has 30 people or fewer. Use a spreadsheet when the group is bigger, when the organizer isn't playing, or when some people have no email address. Here's how a spreadsheet draw compares with Amazing Secret Santa, a free online draw:

SpreadsheetAmazing Secret Santa
Who sees the pairsWhoever built the sheet, plus anyone with the fileNobody on screen: pairs are never shown, and each person gets only their own match by email
Organizer can playOnly if someone else builds and sends itYes, with a private email like everyone else
ExclusionsKeep apart labels, re-sorted by handTicked per person, all respected
Questions to your matchNeeds a go-betweenAnonymous chat with your Santa and your recipient
Lost emailResend that one matchCheck spam, then a new draw for everyone
Dropout after shoppingClose the gap: you already know both linksClose the gap: the organizer learns only two links
CostFree with Google Sheets or an Excel you already haveFree, no ads, no account

When is a spreadsheet the better choice?

A spreadsheet wins in four situations:

  • Groups over 30. The app draws 3 to 30 people at a time, so a bigger group needs one draw per team or family branch, while a sheet shuffles everyone at once.
  • An organizer who isn't playing and loses nothing by knowing the pairs, like a teacher or an HR coordinator.
  • People without email, since you can print the matches on slips and hand them out.
  • A lost email, because you can resend one match instead of redrawing for everyone.

After gifts are bought, a dropout has the same fix in both: the dropout and the person who drew them each tell the organizer privately, and the organizer pairs that giver with the orphaned recipient. The full steps are in our guide for when someone drops out of Secret Santa.

When is an app the better choice?

An app is the better choice when any of these is true:

  • You want to play too. The pairs never show on screen, so the organizer gets a private email like everyone else.
  • You have rules to respect. Tick who each person must not draw. Exclusions are one-way, so tick a couple's partner on both sides.
  • You'd rather not write a message per person. Everyone gets their own email, and you see whether each one was sent or failed.
  • People will have questions. Each email links to anonymous chats with your Secret Santa and your gift recipient, handy for sizes and hints, though they send no notifications.
  • You want the details in one place. Add the budget, the date and a short note for the group once, and they show up in every email. Nobody needs an account.

The app's limits mirror that list: a draw takes 3 to 30 people, and everyone needs an email address. What else it doesn't do, from reminders to resending a single match, is laid out in how Amazing Secret Santa works.

The verdict is short: fair, free, not private. Shuffled once, checked and frozen, a spreadsheet draw is fair and costs nothing, and it suits a big group or an organizer who isn't playing. What it can't do is keep a secret from the person holding the sheet. If that's you and you'd like one present you didn't see coming, Amazing Secret Santa will run the draw and let you be as surprised as everyone else.

Not sure what to buy?

Find a handmade gift on Etsy, from funny to cozy, for every kind of person.

Frequently Asked Questions

5

You don't need to download one. The layout is six columns and a few formulas, all in this guide. Build it once and save an empty copy before you add any names, and next year's draw starts from a ready-made sheet.

If the order comes from a formula such as SORTBY with RANDARRAY, it recalculates after every edit. Sort once with a RAND helper column instead, then copy the match column and paste it back as values only. The pairs then stay fixed, even when you reopen the file.

Yes, it can write a list of pairs, but whoever pasted in the names sees every match, and chatbots can slip with a self-draw or a broken exclusion. If you use one, check every pair yourself, leave email addresses out and don't expect the organizer to be surprised.

Send a short online form, such as Google Forms or Microsoft Forms, asking for a name, an email address and any gift notes. The responses collect in a spreadsheet you can copy into your draw sheet. Keep personal notes on a separate tab from the pairs.

Yes. Shuffle-and-shift works for any group size once you extend the formulas to the last row. What grows is the sending, one message per person, so a mail merge helps. Splitting by team lets each team lead run a draw, so no single person sees every pair.

Published:
Last updated:
Amazing Secret Santa logo

Give it a try!

Use our amazing website to organize a Secret Santa draw with your friends, family, or colleagues! No sign-up required. No ads. 100% free!

TRY IT NOW!
  • 100% Free
  • No Login Required
  • Email Notifications
People with gifts

Read Also

Explore Categories