A left join in Excel allows you to combine two different tables based on a common column, ensuring that every single row from your first (left) table is preserved, regardless of whether a matching record exists in the second (right) table. This is essentially the modern, more powerful alternative to VLOOKUP or XLOOKUP, as it can pull multiple columns at once and handle larger datasets without slowing down your workbook. By using Power Query, you create a repeatable connection between your data sources that can be refreshed with one click whenever the source data changes.

What You'll Need

  • Microsoft Excel (Power Query is built-in for Excel 2016 and later; for 2010 or 2013, you may need to install the Power Query add-in).
  • Two sets of data that share a common identifier (e.g., an Order ID, Email Address, or Product SKU).
  • Your data formatted as official Excel Tables (Ctrl + T) to ensure the join remains dynamic.

Step-by-Step

  1. Convert Data to Tables: Select your first range of data and press Ctrl + T. Ensure "My table has headers" is checked and click OK. Rename this table in the Table Design tab (e.g., "MainTable"). Repeat this process for your second data range and name it (e.g., "LookupTable").
  2. Load the First Table into Power Query: Click anywhere inside your primary table. Go to the Data tab on the ribbon and select From Table/Range. This opens the Power Query Editor window.
  3. Close and Load as Connection: Once the Power Query Editor opens and you see your data, you don't need to make changes yet. Click the arrow under Close & Load in the Home tab and select Close & Load To.... In the dialog box, choose Only Create Connection and click OK. This tells Excel to remember the table without duplicating it on a new sheet yet.
  4. Load the Second Table: Repeat the process for your second table: click inside the table, go to Data > From Table/Range, then Close & Load To... > Only Create Connection.
  5. Initiate the Merge: Go to the Data tab, click Get Data > Combine Queries > Merge. A new window will appear.
  6. Configure the Join: In the Merge window, select your primary table from the first dropdown menu. Select your secondary table from the second dropdown menu. Now, click on the common column (the unique identifier) in both preview windows. The columns will be highlighted in grey.
  7. Select the Join Kind: In the Join Kind dropdown, select Left Outer (all from first, matching from second). This is the technical name for a Left Join. Click OK.
  8. Expand the Joined Columns: You will now see your primary table, and the last column will contain the word "Table" in every cell. Click the Expand icon (two small arrows pointing outward) in the header of that column. Uncheck "Use original column name as prefix" and select only the specific columns you want to pull from the second table. Click OK.
  9. Load the Final Result: Now that your data is merged, click Close & Load. Excel will create a new worksheet containing the combined data, keeping every row from your original primary table.

Common Mistakes

One of the most frequent errors is failing to ensure that the data types of the joining columns match. For example, if the ID column in the first table is formatted as "Text" but the ID column in the second table is "Whole Number," Power Query will not find any matches, resulting in null values for all joined columns. You must ensure both columns are set to the same type in the Power Query Editor before performing the merge.

Another common mistake is ignoring trailing or leading spaces in your identifiers. A cell containing "ID123 " (with a space) is not the same as "ID123" (without a space). This often happens when data is exported from a CRM or accounting software. To fix this, right-click the column in Power Query and select Transform > Trim before merging.

Users also frequently forget to use the "Only Create Connection" option. If you load every table directly to the sheet, you end up with three versions of your data: the two source tables and the final merged table, which can bloat the file size and cause confusion about which table is the "source of truth."

Tips

To keep your workbook performing optimally, use the Remove Columns feature within Power Query. Once you have expanded the columns you need from the second table, you can remove the original joining column from the second table if it is a duplicate of the one in the first table. This keeps your final output clean.

If you are dealing with millions of rows, avoid loading the final result back into an Excel sheet, as Excel has a limit of 1,048,576 rows. Instead, when you select Close & Load To..., choose Add this data to the Data Model. This allows you to analyze the joined data using a Pivot Table without ever needing to display the raw merged rows on a worksheet.

Remember that Power Query is case-sensitive. If your join key is "Apple" in one table and "apple" in another, a Left Join will treat these as different values and return a null. To resolve this, right-click the column and select Transform > lowercase for both tables before merging.

Troubleshooting

If you see "null" values where you expected data: First, check for data type mismatches. In the Power Query Editor, look at the icon to the left of the column header (e.g., "123" for numbers, "ABC" for text). If they differ, click the icon and change them to match. If they already match, check for hidden spaces by using the Trim function. Finally, verify that the value actually exists in the second table; if it doesn't, a "null" is the correct result of a left join.

If the merge is taking too long or freezing: This usually happens with very large datasets. Try to filter out unnecessary rows or columns in the individual queries before you merge them. The less data Power Query has to hold in memory during the join process, the faster it will run.

If the data doesn't update when the source tables change: Power Query does not update in real-time like a formula does. You must go to the Data tab and click Refresh All to trigger the join process again and pull in the latest information from your source tables.

Frequently Asked Questions

How is a Left Join different from VLOOKUP?

VLOOKUP only returns a single value from one column. A Left Join can return multiple columns from the second table simultaneously and is more efficient for large datasets because it processes the join in memory rather than calculating cell-by-cell.

Can I do a Left Join if I have multiple matches in the second table?

Yes. Unlike VLOOKUP, which only finds the first match, a Left Join will create duplicate rows in your primary table for every match found in the second table. This is useful for "one-to-many" relationships, such as one customer having multiple orders.

Do I need to sort my data before performing a Left Join?

No. Power Query handles the matching regardless of the order of the rows. Sorting is not required for the join to function correctly.

Will a Left Join delete data from my original tables?

No. Power Query is non-destructive. It reads the data from your source tables and creates a new, separate output table. Your original data remains untouched.

Can I join more than two tables?

Yes. You can perform a merge, then merge that resulting query with a third table, and so on. You simply repeat the merge process using the output of the first join as your new "left" table.