Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

How to Reconcile Two Columns in Excel: 3 Best Methods

· 7 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

To reconcile two columns in Excel, the fastest method is using the XLOOKUP or VLOOKUP function to identify which values in one list are missing from the other. By creating a helper column that searches for a value from Column A within Column B, Excel will either return the matching value or an error (like #N/A), instantly highlighting the discrepancies between your two data sets.

Reconciliation is the process of ensuring that two sets of records are in agreement. In a business context, this is often used to compare a bank statement against an internal ledger, or a list of shipped orders against a list of paid invoices. When you reconcile columns, you are essentially looking for three things: matches (data present in both), orphans (data present in only one), and mismatches (data that exists in both but has different associated values, such as different prices for the same SKU).

What You'll Need

  • Microsoft Excel (Office 365, Excel 2021, or earlier versions).
  • Two columns of data that share a common unique identifier (such as an Order ID, Email Address, or Part Number).
  • Clean data: Ensure there are no leading or trailing spaces in your cells, as Excel treats "Apple" and "Apple " as different values.

Step-by-Step

Depending on your version of Excel and your specific goal, there are three primary ways to reconcile data. We will walk through the most reliable methods: the XLOOKUP method for modern users, the VLOOKUP method for legacy compatibility, and Conditional Formatting for quick visual checks.

Method 1: Using XLOOKUP (Best for Office 365 and Excel 2021+)

  1. Prepare your columns: Place your first list in Column A and your second list in Column B. Ensure both columns have a header row (e.g., "List 1" and "List 2").
  2. Create a helper column: Click on cell C2 (the first empty cell next to your first data point).
  3. Enter the formula: Type =XLOOKUP(A2, B:B, B:B, "Missing").
  4. Understand the formula: A2 is the value you are looking for. B:B is the range where Excel should search. The second B:B tells Excel to return the value from Column B if a match is found. "Missing" is the text Excel will display if no match exists.
  5. Apply to all rows: Hover your mouse over the bottom-right corner of cell C2 until the cursor becomes a small black cross (the fill handle). Double-click the cross to flash-fill the formula down to the end of your data set.
  6. Filter the results: Select your header row, go to the Data tab, and click Filter. Click the filter arrow in Column C and uncheck everything except "Missing" to see exactly which items in List 1 are not in List 2.

Method 2: Using VLOOKUP (Compatible with all Excel versions)

  1. Organize your data: Ensure the unique identifier you are searching for is in the leftmost column of your lookup range.
  2. Enter the formula: In cell C2, type =VLOOKUP(A2, B:B, 1, FALSE).
  3. Break down the logic: A2 is the lookup value. B:B is the table array. 1 tells Excel to return the value from the first column of that array. FALSE forces Excel to find an exact match; without this, Excel may return an approximate match, which is dangerous for reconciliation.
  4. Handle errors: VLOOKUP returns #N/A when a match isn't found. To make this cleaner, wrap it in an IFERROR function: =IFERROR(VLOOKUP(A2, B:B, 1, FALSE), "Not Found").
  5. Fill and Filter: Drag the fill handle down to the bottom of your list and use the Filter tool on the Data tab to isolate the "Not Found" entries.

Method 3: Using Conditional Formatting (For Visual Comparison)

  1. Select both columns: Highlight all the data in Column A and Column B simultaneously.
  2. Open Highlight Rules: Go to the Home tab on the ribbon. Click Conditional Formatting > Highlight Cells Rules > Duplicate Values....
  3. Choose the criteria: In the dialog box that appears, the left dropdown will default to "Duplicate." To find what is missing, change this dropdown to "Unique."
  4. Select formatting: Choose a fill color (e.g., Light Red Fill with Dark Red Text) and click OK.
  5. Analyze: Every cell that is highlighted in red exists in one column but not the other. This is the fastest way to spot gaps without writing formulas, though it is less effective for lists with thousands of rows.

Common Mistakes

One of the most frequent errors in reconciliation is ignoring hidden characters. If a cell contains a trailing space (e.g., "123 "), Excel will not match it to "123". This often happens when exporting data from accounting software or CRM systems. To fix this, use the =TRIM() function on your columns before reconciling.

Another common mistake is failing to use Absolute References when selecting a specific range instead of an entire column. If you use B2:B100 instead of B:B, the range will shift as you drag the formula down (becoming B3:B101, B4:B102, etc.), causing you to miss matches at the top of your list. Always use dollar signs ($B$2:$B$100) to lock the range.

Finally, users often forget to check for Data Type Mismatches. If Column A contains numbers stored as text and Column B contains actual numbers, Excel will treat them as different values even if they look identical. You can tell if a number is stored as text if there is a small green triangle in the top-left corner of the cell.

Tips

To make your reconciliation process more professional, use Excel Tables. Select your data and press Ctrl + T. When you enter a formula in a Table, Excel automatically expands that formula to the entire column, eliminating the need to manually drag the fill handle.

If you need to reconcile based on two criteria (e.g., matching both a "First Name" and a "Last Name"), create a Concatenated Key. In a new column, use =A2&B2 to merge the two values into one unique string. Then, perform your XLOOKUP or VLOOKUP using these concatenated keys instead of single columns.

For very large datasets (over 50,000 rows), formulas can slow down your workbook. In these cases, consider using Power Query. You can load both columns into Power Query and perform a "Merge Queries" operation using a "Left Anti-Join," which automatically filters the list to show only the rows that do not have a match in the second table.

Troubleshooting

If the formula returns #N/A but you can clearly see the value exists in both columns: First, check for trailing spaces using the =LEN() function to see if the character count matches. If one is 5 characters and the other is 6, you have a hidden space. Use =TRIM() to clean the data. Second, check the formatting. Select the column, go to the Home tab, and change the format to "General" for both columns to ensure they are being treated as the same data type.

If the Conditional Formatting is not highlighting anything: Ensure that you have selected the correct range. If you selected the headers, they might be counted as duplicates. Also, ensure that "Calculation Options" (under the Formulas tab) is set to "Automatic." If it is set to "Manual," the formatting may not update in real-time as you change data.

If your XLOOKUP is returning the wrong value: Double-check that your lookup array and return array are the same size. If you select B2:B100 for the search but C2:C50 for the return, the results will be offset and incorrect.

Frequently Asked Questions

Can I reconcile two columns on different sheets?

Yes. When selecting the lookup range in your formula, simply click over to the other sheet and highlight the column. Excel will automatically add the sheet name to the formula (e.g., 'Sheet2'!B:B).

How do I find values that are in List 2 but NOT in List 1?

Reverse the formula logic. Instead of looking up A2 in Column B, look up B2 in Column A. Use =XLOOKUP(B2, A:A, A:A, "Missing") and drag it down next to List 2.

Is there a way to reconcile columns without formulas?

Yes, the Conditional Formatting "Duplicate Values" method is the best non-formula approach. Alternatively, you can use the "Remove Duplicates" tool on a combined list to see what remains, though this modifies your data and is not recommended for auditing.

Does XLOOKUP work in older versions of Excel?

No, XLOOKUP is only available in Microsoft 365 and Excel 2021 or later. For older versions, use VLOOKUP or the INDEX/MATCH combination.

What is the difference between a "Unique" and "Duplicate" match?

A duplicate match means the value exists in both columns. A unique match (in the context of Conditional Formatting) means the value exists in only one of the two selected columns, marking it as a discrepancy.