How to Combine Two Lists or Several Tabs in Google Sheets Without Duplicates: VSTACK, UNIQUE, One Row per Key and Other Files (2026)
Two sign-up sheets, last month’s and this month’s customer exports, a list from a colleague’s file: sooner or later you need one list with every entry once. Google Sheets can do it with a single formula that stays up to date as the source lists change, or with the built-in Remove duplicates tool once the lists are pasted together. This guide shows both, and the three decisions that change the result: whether letter case and spaces matter, whether you need just the values or the whole rows, and which list wins when the same person is on both.
The example
Two tabs, Jan and Feb, each with a header row, the email in column A and the name in column B.
| Jan | A: Email | B: Name |
|---|---|---|
| 2 | ana@x.com | Ana |
| 3 | bo@x.com | Bo |
| 4 | cy@x.com | Cy |
| Feb | A: Email | B: Name |
|---|---|---|
| 2 | Bo@x.com | Bo |
| 3 | dee@x.com | Dee |
| 4 | ana@x.com | Ana R. |
| 5 | dee@x.com | Dee |
That is 7 entries and 4 different people: ana, bo, cy and dee. Put the formulas below on a new tab, in a cell with empty cells below and to the right, because each result spills over several rows. If something is already in the way, the formula shows a #REF! error until you clear those cells.
One column from two tabs
=UNIQUE(TOCOL(VSTACK(Jan!A2:A, Feb!A2:A), 1))
VSTACK appends the ranges one under the other, in the order you list them. The open-ended ranges A2:A keep picking up new rows, but they also bring along the empty rows at the bottom of each tab; TOCOL(…, 1) drops those blank cells, so the result has no empty line. UNIQUE then keeps each value once, in the order it first appears:
| Result |
|---|
| ana@x.com |
| bo@x.com |
| cy@x.com |
| Bo@x.com |
| dee@x.com |
Five values, not four: see the next section for Bo@x.com. Without TOCOL the result contains one empty row as well.
The same thing written with an array literal, the form you will see in older spreadsheets and forum answers (a semicolon stacks ranges as rows; in locales that use a comma as the decimal separator, Sheets uses a backslash instead of the comma between columns):
=UNIQUE(TOCOL({Jan!A2:A; Feb!A2:A}, 1))
For an A→Z list, wrap it in SORT:
=SORT(UNIQUE(TOCOL(VSTACK(Jan!A2:A, Feb!A2:A), 1)))
To stack two columns on the same tab, just use the two ranges: =UNIQUE(TOCOL(VSTACK(A2:A, B2:B), 1)).
Ignore letter case and extra spaces
UNIQUE compares text exactly, so Bo@x.com and bo@x.com stay separate, and so would cy@x.com with a trailing space pasted in from an export. For emails and names that is usually wrong. Lowercase and trim the values first:
=ARRAYFORMULA(LET(v, LOWER(TRIM(VSTACK(Jan!A2:A, Feb!A2:A))), UNIQUE(FILTER(v, v<>""))))
| Result |
|---|
| ana@x.com |
| bo@x.com |
| cy@x.com |
| dee@x.com |
LET names the stacked, cleaned values v so they are written once; FILTER drops the blank rows; ARRAYFORMULA makes LOWER and TRIM work on every cell. The result is lowercase. LOWER also turns numbers into text, so use this version for text such as emails, not for numeric IDs. TRIM does not remove non-breaking spaces. For variants that differ in more than case and spaces, such as Gmail dots or phone formats, see duplicates that don’t match exactly.
Keep whole rows, not just one column
To combine the full rows and drop rows that repeat exactly:
=LET(d, VSTACK(Jan!A2:B, Feb!A2:B), k, VSTACK(Jan!A2:A, Feb!A2:A), UNIQUE(FILTER(d, k<>"")))
Here d is the stacked rows and k the stacked email column, used only to drop the empty rows. In the example this returns 6 rows: only the second dee@x.com / Dee row goes. Both ana rows stay because the names differ (Ana and Ana R.), and Bo@x.com stays because of the capital B. That is correct if a duplicate means “every column the same”, and usually not what you want for a contact list.
One row per email, whole row kept
To get one row per person with all of its columns, decide duplicates on the email only:
=ARRAYFORMULA(LET(d, VSTACK(Jan!A2:B, Feb!A2:B), k, LOWER(TRIM(VSTACK(Jan!A2:A, Feb!A2:A))), FILTER(d, k<>"", XMATCH(k, k)=SEQUENCE(ROWS(k)))))
| Name | |
|---|---|
| ana@x.com | Ana |
| bo@x.com | Bo |
| cy@x.com | Cy |
| dee@x.com | Dee |
How it works: k is the lowercased, trimmed email for every stacked row. XMATCH(k, k) returns, for each row, the position where that email first appears, and SEQUENCE(ROWS(k)) is each row’s own position (1, 2, 3, …). They are equal only on the first occurrence, so FILTER keeps the first row of each email and every later copy is dropped. XMATCH’s default match mode is an exact match, so * and ? in your values are not treated as wildcards.
Which list wins: the first range in VSTACK. Here Jan comes first, so ana keeps the name “Ana” from Jan, not “Ana R.” from Feb. Swap the order, VSTACK(Feb!A2:B, Jan!A2:B) together with VSTACK(Feb!A2:A, Jan!A2:A), and Feb’s rows win instead. To keep the newest or the highest row rather than the first, see remove duplicates but keep the latest row.
The result has no header. To add one, put the header row in front with another VSTACK:
=VSTACK({"Email", "Name"}, ARRAYFORMULA(LET(d, VSTACK(Jan!A2:B, Feb!A2:B), k, LOWER(TRIM(VSTACK(Jan!A2:A, Feb!A2:A))), FILTER(d, k<>"", XMATCH(k, k)=SEQUENCE(ROWS(k))))))
This compares every row with every other row, which is fine for a few thousand rows. On very large tabs, replace the open-ended ranges with fixed ones, such as Jan!A2:B5000, to keep it fast.
Three or more tabs
VSTACK takes as many ranges as you like. Put a tab name that contains spaces or symbols in single quotes:
=UNIQUE(TOCOL(VSTACK(Jan!A2:A, Feb!A2:A, Mar!A2:A, 'Walk-ins 2026'!A2:A), 1))
The same applies to the whole-row and one-row-per-email versions: add the extra tab to both the d and the k stack, in the same order.
Columns in a different order? VSTACK stacks by position, not by header, so if Feb has Name in A and Email in B, rearrange it with an array literal first (a comma puts ranges side by side):
=UNIQUE(FILTER(VSTACK(Jan!A2:B, {Feb!B2:B, Feb!A2:A}), VSTACK(Jan!A2:A, Feb!B2:B)<>""))
Give every range the same number of columns, in the same order, before stacking.
Lists in different spreadsheets
IMPORTRANGE pulls a range from another spreadsheet and can go straight into VSTACK:
=UNIQUE(TOCOL(VSTACK(A2:A, IMPORTRANGE("https://docs.google.com/spreadsheets/d/…", "Signups!A2:A")), 1))
Use the other file’s full URL and a range string with its tab name. The first time a spreadsheet pulls from a new source, the formula shows a #REF! error asking you to connect the sheets; click Allow Access. If you don’t own the source file, you need access to it first. Google’s help lists a few limits worth knowing: each request is capped at 10 MB of data, results can take a while to update after the source changes, and long chains of IMPORTRANGE between files get slow. Import only the columns you need.
A static list instead of a formula
The formulas above update by themselves. When you want a fixed list, for example to send or to edit by hand, copy the result and paste it with Edit › Paste special › Values only (Ctrl+Shift+V, ⌘+Shift+V on a Mac). Google’s help notes that Paste special works only within one spreadsheet.
Or skip formulas entirely: paste the second list directly under the first (same columns, header only once), select the combined data and choose Data › Data cleanup › Remove duplicates. Tick Data has header row if it does, tick only the Email column, and click Remove duplicates. The tool keeps the first row of each group, so the list you pasted on top wins, just like the first range in VSTACK. It treats values that differ only in letter case as duplicates, so on the example it removes 3 rows and leaves the same 4 as the one-row-per-email formula. With both columns ticked it removes 2 and leaves 5. Work on a copy of the tab if you are not sure.
Pitfalls
- Headers in the stack. Start every range at row 2. Stacking
Jan!A1:AandFeb!A1:Aputs the word Email into the list once, or twice in the whole-row version if the headers differ. - Blank rows in the middle. Open-ended ranges include the empty rows at the bottom of each tab, which land between the lists when stacked. Keep the TOCOL or FILTER step.
- Case and spaces. UNIQUE is exact and Remove duplicates ignores letter case, so the two can give different answers on the same data. Choose the LOWER/TRIM version if they should agree.
- Numbers stored as text.
00123as text and123as a number are different values. Format ID columns as Format › Number › Plain text on every tab before combining. - Editing the result. Typing into a cell inside a spilled result makes the formula show
#REF!. Paste values first if the list needs hand edits or further cleanup. - Mismatched columns. Stack ranges with the same width and column order; otherwise you get errors or empty-looking cells, or names end up in the email column.
Only need to know which entries are on both lists, or only on one? That’s a comparison rather than a merge: see compare two columns or two sheets. To count how many repeats the combined list had, see how to count duplicates.
FAQ
How do I combine two columns into one list without duplicates in Google Sheets?
Stack them with VSTACK and wrap the result in UNIQUE: =UNIQUE(TOCOL(VSTACK(A2:A, B2:B), 1)). TOCOL with 1 drops the empty cells; the older array form {A2:A; B2:B} works the same way as VSTACK.
How do I merge lists from two tabs and remove duplicates?
Refer to each tab inside VSTACK, for example =UNIQUE(TOCOL(VSTACK(Jan!A2:A, Feb!A2:A), 1)). Put the formula on a third tab with empty cells below and to the right, because the result spills.
Why does UNIQUE keep Ana@x.com and ana@x.com?
UNIQUE compares text exactly, so values that differ in letter case or a stray space are different to it. Lowercase and trim inside the formula: =ARRAYFORMULA(LET(v, LOWER(TRIM(VSTACK(Jan!A2:A, Feb!A2:A))), UNIQUE(FILTER(v, v<>"")))). Data cleanup › Remove duplicates, by contrast, treats values that differ only in letter case as duplicates.
How do I combine tabs but keep only one row per email with all its columns?
Stack the full rows, build a lowercased key, and keep each row whose key is found first at its own position: =ARRAYFORMULA(LET(d, VSTACK(Jan!A2:B, Feb!A2:B), k, LOWER(TRIM(VSTACK(Jan!A2:A, Feb!A2:A))), FILTER(d, k<>"", XMATCH(k, k)=SEQUENCE(ROWS(k))))). The tab listed first wins when the same email appears on both.
Can I combine lists from different spreadsheets without duplicates?
Yes. Use IMPORTRANGE inside VSTACK, for example =UNIQUE(TOCOL(VSTACK(A2:A, IMPORTRANGE("spreadsheet URL", "Signups!A2:A")), 1)). The first time, Sheets asks you to connect the files with Allow Access.
How do I turn the combined list into normal values?
Copy the result, then use Edit › Paste special › Values only (or Ctrl+Shift+V) on the spot where you want the fixed list. The pasted cells no longer update when the source tabs change.
Install free from Google Workspace MarketplaceSee SheetDupes
Want to test it first? Try it on sample data (makes a copy of a 12-row example sheet in your Drive).
Related guides
- How to Find and Remove Duplicates in Google Sheets: Highlight, Count, Delete and Keep the Original (2026)
- How to Highlight Duplicates in Google Sheets: Conditional Formatting Formulas for One Column, Whole Rows, Repeats Only and Two Sheets (2026)
- How to Compare Two Columns or Two Sheets in Google Sheets to Find Matches and Duplicates (2026)
- Duplicates That Don’t Match Exactly in Google Sheets: Case, Extra Spaces, Gmail Dots, Phone Formats and Typos (2026)
- How to Remove Duplicates in Google Sheets but Keep the Latest, First or Highest Row per Key (2026)
- How to Prevent Duplicate Entries in Google Sheets: Data Validation Rules, Warnings and a Small Script (2026)
- How to Count Duplicates in Google Sheets: per Value, Extra Rows, Unique Counts and Why the Numbers Disagree (2026)
- How to Merge Duplicate Rows in Google Sheets: Sum the Numbers, Join the Notes and Fill the Blanks (2026)
- UNIQUE vs Remove Duplicates in Google Sheets: Live or Static, Letter Case, Spaces, Columns and Headers (2026)
- How to Remove Duplicates Within a Cell in Google Sheets: Comma-Separated Lists, Tags, Line Breaks and Letter Case (2026)
- How to Show Only the Duplicates in Google Sheets: Filter Duplicate Rows, List Repeated Values and Find Rows That Appear Once (2026)
- How to Find Duplicates Across Multiple Columns in Google Sheets: Rows That Match on Two or More Columns, and Values Repeated Anywhere in a Range (2026)
- How to Remove Duplicates Automatically in Google Sheets: Apps Script on a Daily Timer, on Form Submit or From a Menu (2026)
- How to Find Duplicates in Google Sheets but Ignore Blank Cells: Highlight, Count, List and Remove Without Empty Rows Getting in the Way (2026)
- How to Find Duplicate Transactions in Google Sheets: Double-Imported Rows, Invoices Paid Twice and Same-Amount Charges Within a Few Days (2026)
- How to Format Phone Numbers in Google Sheets: Strip Dashes and Spaces, Show (555) 010-1234, Handle +1 and Extensions, Then Find Duplicate Contacts (2026)
- How to Change Text Case in Google Sheets: UPPERCASE, lowercase, Proper Case Names, Sentence Case and Duplicates That Differ Only in Case (2026)
Menu steps follow Google’s Docs Editors Help pages on removing duplicates and trimming whitespace and paste special; array literals follow using arrays in Google Sheets; function behavior is from the help pages for VSTACK, TOCOL, UNIQUE, FILTER, LET, XMATCH, SEQUENCE, TRIM, SORT and IMPORTRANGE. Instructions refer to Google Sheets as it worked on November 19, 2026; menu names can change. Google Sheets is a trademark of Google LLC and this site is not affiliated with Google. Questions or corrections: hello@loomwise.app.