◆Home Improvement Ideas Journal

"Excel: Compare Two Lists"

By

When working with data in Excel, there often arises a need to compare two lists to find matches, differences, or unique entries. While Excel may not have a built-in "compare lists" feature, there are several methods to achieve this efficiently. In this article, we will explore some of these techniques to help you compare two lists in Excel.

Before we dive into the methods, let's first understand the scenarios where you might need to compare two lists:

Why Compare Two Lists in Excel?

Comparing two lists in Excel is beneficial in various situations, such as:

Excel – Using VLOOKUP to compare two lists
Excel – Using VLOOKUP to compare two lists
Even Faster Way to Compare 2 Lists in Excel [Quick Tip] » Chandoo.org - Learn Excel, Power BI & Charting Online
Even Faster Way to Compare 2 Lists in Excel [Quick Tip] » Chandoo.org - Learn Excel, Power BI & Charting Online
How to compare two worksheets in same workbook or different workbooks?
How to compare two worksheets in same workbook or different workbooks?

  • Data validation: Check if values in one list exist in another to ensure data accuracy and integrity.
  • Merging lists: Combine two lists based on common fields, or remove duplicates.
  • Finding discrepancies: Identify values present in one list but not the other, or vice versa.

Comparing Lists with Conditional Formatting - Excel University
Comparing Lists with Conditional Formatting - Excel University
Compare Two Lists in Excel
Compare Two Lists in Excel
a computer screen with the words compare two lists and highlight differences in each text box
a computer screen with the words compare two lists and highlight differences in each text box

Method 1: Using Conditional Formatting for Unmatched Values

This method helps you quickly identify unmatched values by highlighting them in different colors.

  1. Select the range containing List 1.
  2. Click on Conditional Formatting in the Home tab, then select Highlight Cells Rules, and click on Equal to.
  3. In the 'Format cells that are EQUAL TO:' dialog box, enter '='&A2 (assuming your data starts from A2 in List 2).
  4. Choose a formatting style, such as 'Fill,' and click 'OK.'
  5. Repeat steps 2-4 for List 2, entering '='&B2 (assuming your data starts from B2 in List 1).

3 Ways to Compare Two Sheets in Excel for Efficient Data Comparison and Consolidation
3 Ways to Compare Two Sheets in Excel for Efficient Data Comparison and Consolidation
How to Compare Two Excel Sheets (for differences)
How to Compare Two Excel Sheets (for differences)
Compare two or more lists in Excel with ISNA and MATCH - Big Hungry Geek
Compare two or more lists in Excel with ISNA and MATCH - Big Hungry Geek
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 Compare Two Lists in Excel With 10 advance Methods
How To Compare Two Lists in Excel With 10 advance Methods
Compare Two Lists in Excel
Compare Two Lists in Excel

Method 2: VLOOKUP and IFERROR Functions

This method uses the VLOOKUP function along with IFERROR to match or find discrepancies between the two lists.

  • To find matches: In cell C2, enter the formula =IFERROR(VLOOKUP(B2,A2:A100,1,FALSE),"") (assuming your data starts from A2 in List 1 and goes up to A100).
  • To find unmatched values: In cell D2, enter the formula =IFERROR(VLOOKUP(B2,A2:A100,1,FALSE),"Not Found").

How to Compare Two Lists in Excel Fast!
How to Compare Two Lists in Excel Fast!
Excel: Compare Two Columns for Matches and Differences
Excel: Compare Two Columns for Matches and Differences
vlookup Archives » Chandoo.org - Learn Excel, Power BI & Charting Online
vlookup Archives » Chandoo.org - Learn Excel, Power BI & Charting Online
How to Compare Data Ranges in Excel Like a Pro | Easy Excel Tutorial
How to Compare Data Ranges in Excel Like a Pro | Easy Excel Tutorial
17 MVP tips, tricks and shortcuts for Excel » The Spreadsheet Page
17 MVP tips, tricks and shortcuts for Excel » The Spreadsheet Page
Compare two lists and highlight differences
Compare two lists and highlight differences
Compare Two Lists in Excel for Matches (All Methods and Uses) - ExcelDemy
Compare Two Lists in Excel for Matches (All Methods and Uses) - ExcelDemy
Compare 2 files or sheets of data in Excel - How to
Compare 2 files or sheets of data in Excel - How to
How to COMPARE TWO SHEETS rapidly in excel - Tamil
How to COMPARE TWO SHEETS rapidly in excel - Tamil
How to Compare Two Lists and Return Differences in Excel - ExcelDemy
How to Compare Two Lists and Return Differences in Excel - ExcelDemy
Excel Training | How to Compare Two Excel Sheets and Find Differences. Highlight differences between 2 sheets with conditional formatting #excelfunctions… | Instagram Excel Formula Comparison, How To Understand Excel Operators, How To Compare Two Excel Sheets, Excel File Comparison Tutorial, Excel Formula For And, Practical Excel Training Guide, Advanced Excel Techniques For Professionals, Excel Sheet Comparison Settings, How To Combine Excel Sheets
Excel Training | How to Compare Two Excel Sheets and Find Differences. Highlight differences between 2 sheets with conditional formatting #excelfunctions… | Instagram Excel Formula Comparison, How To Understand Excel Operators, How To Compare Two Excel Sheets, Excel File Comparison Tutorial, Excel Formula For And, Practical Excel Training Guide, Advanced Excel Techniques For Professionals, Excel Sheet Comparison Settings, How To Combine Excel Sheets
How to compare two Excel files or sheets for differences
How to compare two Excel files or sheets for differences
Compare Two Lists Using the VLOOKUP Formula
Compare Two Lists Using the VLOOKUP Formula
Compare Excel Lists Tool, Find Duplicates, Missing Items, Changes (Excel, Google Sheets)
Compare Excel Lists Tool, Find Duplicates, Missing Items, Changes (Excel, Google Sheets)

Using Add-ins for Enhanced Comparison

If you need more advanced features for comparing lists, consider using add-ins such as 'Comparer' or 'Duplicate Removal' available in the Office Store.

  • Comparer: This add-in helps compare two lists based on a common field, displaying matches, differences, and unique values.
  • Duplicate Removal: This add-in removes duplicate values from a list or combines two lists based on common fields.

Comparing Lists Using Power Query

Power Query is a powerful tool for transforming and comparing data. To compare two lists using Power Query, follow these steps:

  1. Select any cell in your data range, then click on the Data tab and click Get & Transform Data.
  2. In the 'Get & Transform Data' pane, select Home & Transform, then click on Merge.
  3. In the 'Merge' dialog box, select the table containing List 1, select the common field, and choose the join kind (e.g., 'Left Outer').
  4. Click OK, then uncheck the columns you don't need, and click Close & Load.

After loading the data, you can apply filters, sort, or perform other operations to analyze the comparison results. Power Query offers versatile options to compare and transform data, making it an excellent choice for more complex comparisons.

In Excel, there are multiple ways to compare two lists, catering to various data comparison needs. Whether you're looking for matches, discrepancies, or unique values, using one or a combination of these methods will help you efficiently compare your lists. Armed with this knowledge, you can now confidently tackle your data comparison tasks in Excel.