Featured Article

"Excel: Matching Two Columns Like a Pro"

Alan Jun 16, 2026

Mastering Excel: How to Match Two Columns for Effective Data Management

calculate gst in excel, how to calculate gst, gst calculator, gst calculator in excel
calculate gst in excel, how to calculate gst, gst calculator, gst calculator in excel

In the vast world of data management, Excel stands as a powerhouse, offering a multitude of tools to streamline your workflow. One of the most fundamental tasks in Excel is matching two columns of data. This process, known as 'matching' or 'vlookup', allows you to compare and extract relevant data from one column based on the values in another. Let's delve into the step-by-step process of how to match two columns in Excel.

How to Match Multiple Columns in Excel (Easiest 5 ways)
How to Match Multiple Columns in Excel (Easiest 5 ways)

Understanding the Matching Process

Before we dive into the practical aspects, let's understand the concept. Matching two columns involves comparing each value in one column (the 'lookup' column) with every value in another column (the 'table_array' column). If a match is found, the corresponding value from the 'table_array' column is returned. This process is particularly useful when you have duplicate values in your 'lookup' column, as it ensures that only the first match is returned.

How to Combine Two Columns in Microsoft Excel
How to Combine Two Columns in Microsoft Excel

Preparing Your Data for Matching

Before you start, ensure your data is clean and formatted correctly. Remove any duplicates from the 'lookup' column, as Excel's matching functions only return the first match. Also, ensure both columns are sorted in ascending order. If they're not, you can sort them by selecting the column, clicking on the 'Sort & Filter' button in the 'Home' tab, and choosing 'Sort A to Z' or 'Sort Z to A'.

How To Combine Two Columns In Excel
How To Combine Two Columns In Excel

Using the VLOOKUP Function

The VLOOKUP function is the most common way to match two columns in Excel. Here's how to use it:

  • Select the cell where you want the result to appear.
  • Type '=VLOOKUP(' and select the first cell in your 'lookup' column.
  • Press 'Enter' to confirm the selection.
  • Type a comma (',') and select the first cell in your 'table_array' column.
  • Press 'Enter' to confirm the selection.
  • Type a comma (',') and enter the column index number (the number of the column in the 'table_array' from which you want to retrieve data).
  • Press 'Enter' to confirm the selection.
  • Type 'FALSE' (without quotes) and press 'Enter'. This ensures an exact match.
How to Compare Two Columns in Excel Using VLOOKUP
How to Compare Two Columns in Excel Using VLOOKUP

Here's an example of what the VLOOKUP function should look like: =VLOOKUP(A2,B2:E10,2,FALSE)

Using the XLOOKUP Function (Excel 365 and Later)

Introduced in Excel 365 and later, the XLOOKUP function is a more versatile and user-friendly alternative to VLOOKUP. Here's how to use it:

Merge Two Columns in Excel
Merge Two Columns in Excel
  • Select the cell where you want the result to appear.
  • Type '=XLOOKUP(' and select the first cell in your 'lookup' column.
  • Press 'Enter' to confirm the selection.
  • Type a comma (',') and select the first cell in your 'table_array' column.
  • Press 'Enter' to confirm the selection.
  • Type a comma (',') and enter the column index number (the number of the column in the 'table_array' from which you want to retrieve data).
  • Press 'Enter' to confirm the selection.

Here's an example of what the XLOOKUP function should look like: =XLOOKUP(A2,B2:E10,2)

Compare two Columns in Excel (for Matches & Differences)
Compare two Columns in Excel (for Matches & Differences)
How to Unhide Column A in Excel
How to Unhide Column A in Excel
HOW TO COMPARE TWO COLUMNS IN EXCEL
HOW TO COMPARE TWO COLUMNS IN EXCEL
How to compare two columns for (highlighting) missing values in Excel?
How to compare two columns for (highlighting) missing values in Excel?
Excel How To Compare Two Columns (3 ways) - Excel University
Excel How To Compare Two Columns (3 ways) - Excel University
How to Select Non-Adjacent Columns in Excel
How to Select Non-Adjacent Columns in Excel
How to Match Two Columns and Return a Third in Excel - ExcelDemy
How to Match Two Columns and Return a Third in Excel - ExcelDemy
Find Duplicates in Excel Instantly | Smart Formula Trick You Must Know 💥 | Excel Tips for Beginners
Find Duplicates in Excel Instantly | Smart Formula Trick You Must Know 💥 | Excel Tips for Beginners
How to merge or combine two columns in Microsoft Excel
How to merge or combine two columns in Microsoft Excel
Compare Two Columns in Excel (for Matches & Differences)
Compare Two Columns in Excel (for Matches & Differences)
Easy Methods to Compare Columns in Excel
Easy Methods to Compare Columns in Excel
Merge Two Columns in Excel
Merge Two Columns in Excel
Excel Formula to Compare Two Columns and Return a Value (5 examples) - ExcelDemy
Excel Formula to Compare Two Columns and Return a Value (5 examples) - ExcelDemy
Compare Two Columns in Excel (for Matches & Differences)
Compare Two Columns in Excel (for Matches & Differences)
How to Compare Two Columns or Lists in Excel (4 Suitable Ways) - ExcelDemy
How to Compare Two Columns or Lists in Excel (4 Suitable Ways) - ExcelDemy
How to Transpose data from rows to columns in excel
How to Transpose data from rows to columns in excel
How to Combine Two Columns in Microsoft Excel
How to Combine Two Columns in Microsoft Excel
Excel Pro Trick: Compare Two Columns to find differences in Excel using UNIQUE and VSTACK Functions
Excel Pro Trick: Compare Two Columns to find differences in Excel using UNIQUE and VSTACK Functions
How To Combine Two Columns In Excel Without Losing Data | CellularNews
How To Combine Two Columns In Excel Without Losing Data | CellularNews
How to Transpose Multiple Columns to Rows in Excel
How to Transpose Multiple Columns to Rows in Excel

Matching Two Columns with INDEX and MATCH

Another way to match two columns in Excel is by using the INDEX and MATCH functions together. This method is particularly useful when you want to return a value from a column that's not to the right of the 'lookup' column. Here's how to use it:

  • Select the cell where you want the result to appear.
  • Type '=INDEX(' and select the range of cells in the 'table_array' column.
  • Press 'Enter' to confirm the selection.
  • Type a comma (',') and type 'MATCH('.
  • Select the first cell in your 'lookup' column.
  • Press 'Enter' to confirm the selection.
  • Type a comma (',') and select the 'table_array' range.
  • Press 'Enter' to confirm the selection.
  • Type '0' (without quotes) and press 'Enter'. This ensures an exact match.

Here's an example of what the INDEX and MATCH functions should look like: =INDEX(B2:B10,MATCH(A2,B2:B10,0))

Autofilling Your Results

Once you've entered the formula, you can autofill it down to the rest of your 'lookup' column. Simply hover your cursor over the small square in the bottom-right corner of the cell, click and drag down to copy the formula to the other cells.

Troubleshooting Common Issues

If you're encountering issues with your match, ensure that your data is sorted and that you're using the correct column index number. Also, double-check that you've entered 'FALSE' or '0' to ensure an exact match. If you're still having trouble, try using the other matching functions (VLOOKUP, XLOOKUP, or INDEX and MATCH) to see if that resolves the issue.

Matching two columns in Excel is a powerful tool that can significantly streamline your data management tasks. By understanding and mastering these functions, you'll be well on your way to becoming an Excel pro. Happy matching!