Join two tables without SQL

Orders in one file, customers in another. Transactions from the bank, invoices from the accounting tool. Answering most business questions means putting two tables side by side, matched on a common column. Excel users do it with VLOOKUP; databases do it with a join. Here is the difference, the four kinds of join in plain words, and how to join large files in a few clicks.

Updated

Lookup or join: not the same thing

A lookup, like VLOOKUP or XLOOKUP, adds columns to your table. For each row, it finds the first matching row in the other table and copies a value. Your table keeps exactly its rows. If a customer appears twice in the other table, only the first is used.

A join creates a new table from both. It keeps every match: an order that matches two rows produces two rows. And it lets you choose what happens to rows with no match on either side.

Rule of thumb: a lookup to enrich a table with details from a reference list (one row per key on the other side); a join to combine two tables whose relationship you want to see in full, or to find what is missing on one side.

The four joins in plain words

JoinKeepsTypical question
InnerOnly rows that match on both sidesOrders whose customer is known
LeftEvery row of the first table, matched or notAll orders, with customer details when available
RightEvery row of the second table, matched or notAll customers, including those with no order
Full outerEvery row of both tablesReconcile two lists and see what is missing on each side

Rows with no match get empty cells for the other table’s columns. Filtering on those empty cells is how you find, for example, customers who never ordered, or bank transactions with no invoice.

Joining in Excel

Excel’s sheet has lookups, not joins. The join is in Power Query: Merge Queries, pick the two tables and the matching columns, then choose the join kind (Left Outer, Right Outer, Full Outer, Inner, and the anti joins). It is powerful, and the result loaded into a sheet is capped at 1,048,576 rows. A left join of 800,000 orders on a customer list with a few duplicate keys can exceed it.

Join two tables in Big Sheets

Big Sheets is a spreadsheet for files of several million rows, in your browser. Lookups and joins are in the same panel.

  1. Open both files; each becomes a sheet.
  2. Click Lookup and choose the Join mode.
  3. Pick the other sheet, and the matching column on each side, for example supplier and supplier_name.
  4. Keep Ignore case and spaces around the values ticked, so that “ACME ” matches “Acme”.
  5. Choose which rows to keep: Inner, Left, Right or Full outer. The icons show which side is kept.
  6. Name the result and click Join. A join always creates a new sheet; your two tables are unchanged.

To enrich a table instead, choose the Lookup mode: pick the columns to bring back, and they are added to your sheet. An icon in their header reopens the lookup to change it.

Before joining: three checks

  • Is the key unique on the reference side? If a customer code appears twice in the customer list, a join doubles that customer’s orders. Remove duplicates first, or use a lookup, which takes the first match.
  • Do the keys look the same? Spaces and capitals are handled by the option above; a code stored as “00042” on one side and “42” on the other is not.
  • Do you need a key on several columns? Build one with a calculated column that joins them with a separator, on both sides.

After joining

  • Compare the row count with what you expect: an inner join has at most as many rows as the smaller side when keys are unique.
  • Filter the columns of each side on empty values to list the unmatched rows.
  • Build a pivot table on the joined sheet: for example revenue per customer segment, which needed both tables.

Both files stay on your device: the join runs in your browser, and nothing is uploaded. Try it on the sample data first, no account needed.

Try it on your own file

Open it in Big Sheets: no sign-up, and your file never leaves this browser.

One plan: €29 incl. VAT per month, everything included, cancel any time. See pricing

Questions

Do I need to know SQL?
No. The join is a panel with clicks. If you like SQL, Big Sheets also has a SQL dialog where each sheet is a table, for read-only queries.
Why does my join have more rows than my table?
A key appears several times on the other side, and a join keeps every match. Remove duplicates on that side, or use a lookup.
Can I join files of millions of rows?
Yes, within your device’s memory. Big Sheets is tested on sheets of up to 5 million rows.